[Checkins] SVN: zc.mirrorcheeseshopslashsimple/trunk/src/zc/mirrorcheeseshopslashsimple.py fixed UnicodeEncodeError

Christian Theune ct at gocept.com
Tue Aug 12 07:05:32 EDT 2008


On Mon, 2008-08-11 at 08:50 -0400, Andreas Jung wrote:
> Log message for revision 89647:
>   fixed UnicodeEncodeError
>   
> 
> Changed:
>   U   zc.mirrorcheeseshopslashsimple/trunk/src/zc/mirrorcheeseshopslashsimple.py
> 
> -=-
> Modified: zc.mirrorcheeseshopslashsimple/trunk/src/zc/mirrorcheeseshopslashsimple.py
> ===================================================================
> --- zc.mirrorcheeseshopslashsimple/trunk/src/zc/mirrorcheeseshopslashsimple.py	2008-08-11 12:44:35 UTC (rev 89646)
> +++ zc.mirrorcheeseshopslashsimple/trunk/src/zc/mirrorcheeseshopslashsimple.py	2008-08-11 12:50:24 UTC (rev 89647)
> @@ -43,7 +43,7 @@
>  def get_page(dest, package, force=False):
>      try:
>          package.decode('ascii')
> -    except UnicodeDecodeError:
> +    except UnicodeEncodeError:
>          print 'skipping %r which has a non-ascii name' % `package`
>          return

That change looks weird and I'd guess a test case would be good.

-- 
Christian Theune · ct at gocept.com
gocept gmbh & co. kg · forsterstraße 29 · 06112 halle (saale) · germany
http://gocept.com · tel +49 345 1229889 7 · fax +49 345 1229889 1
Zope and Plone consulting and development



More information about the Checkins mailing list