[csw-devel] SF.net SVN: gar:[19799] csw/mgar/gar/v2-yann/lib/python/package_stats.py
chninkel at users.sourceforge.net
chninkel at users.sourceforge.net
Sat Dec 1 17:05:48 CET 2012
Revision: 19799
http://gar.svn.sourceforge.net/gar/?rev=19799&view=rev
Author: chninkel
Date: 2012-12-01 16:05:47 +0000 (Sat, 01 Dec 2012)
Log Message:
-----------
gar/v2-yann: temporary workaround for unicode problem
Modified Paths:
--------------
csw/mgar/gar/v2-yann/lib/python/package_stats.py
Modified: csw/mgar/gar/v2-yann/lib/python/package_stats.py
===================================================================
--- csw/mgar/gar/v2-yann/lib/python/package_stats.py 2012-12-01 16:04:46 UTC (rev 19798)
+++ csw/mgar/gar/v2-yann/lib/python/package_stats.py 2012-12-01 16:05:47 UTC (rev 19799)
@@ -381,7 +381,12 @@
line_u = pkgmap_entry["line"].decode("latin1")
f_path, basename = os.path.split(
pkgmap_entry["path"].decode('latin1'))
+ except UnicodeEncodeError, e:
+ # the line was already in unicode
+ line_u = pkgmap_entry['line']
+ f_path, basename = os.path.split(pkgmap_entry["path"])
# If this fails too, code change will be needed.
+
f = m.CswFile(
basename=basename,
path=f_path,
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the devel
mailing list