[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'.


The names of built-in exceptions usually end with "Exception" or "Error":

Received on 2009-03-31 15:30:43 CEST

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