[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [PATCH] change-svn-wc-format.py

From: Arfrever Frehtes Taifersar Arahesis <Arfrever.FTA_at_GMail.Com>
Date: Tue, 31 Mar 2009 15:30:27 +0200

2009-03-31 15:05 Edmund Wong <edmund_at_belfordhk.com> napisał(a):
> Hi Arfrever,
>
>> It will be available on the "python-3-compatibility" branch [1] in
>> the next week. (Usually I'm merging changes from trunk to that
>> branch at the end of every week.)
>>
>>
>> The best solution is:
>> except UnrecognizedWCFormatException as e:
>> ... but it requires Python >=2.6.
>>
>
> Yes, I realized that "as" also works with 2.6 too.  I missed
> that part of the changes in python.  So I guess it's still
> with the parenthesis until then.

The code wants to catch an instance of 'UnrecognizedWCFormatException'
and assign it to variable 'e'. It doesn't want to catch exceptions of
type 'e'.

http://docs.python.org/tutorial/errors.html
http://docs.python.org/3.0/tutorial/errors.html

The names of built-in exceptions usually end with "Exception" or "Error":
http://docs.python.org/library/exceptions.html
http://docs.python.org/3.0/library/exceptions.html

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=1495850
Received on 2009-03-31 15:30:43 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.