You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gump.apache.org by aj...@apache.org on 2004/10/05 18:48:05 UTC
svn commit: rev 53808 - in gump/trunk/python/gump: threads utils
Author: ajack
Date: Tue Oct 5 09:48:00 2004
New Revision: 53808
Modified:
gump/trunk/python/gump/threads/tools.py
gump/trunk/python/gump/utils/sync.py
Log:
Third attempt at finding exactly which file is causing sync() grief.
I'm pretty sure it is the 'resume.xml' (the 'e').
Trouble is, what to do about it? What character set are file systems
working in?
Modified: gump/trunk/python/gump/threads/tools.py
==============================================================================
--- gump/trunk/python/gump/threads/tools.py (original)
+++ gump/trunk/python/gump/threads/tools.py Tue Oct 5 09:48:00 2004
@@ -104,6 +104,6 @@
# Try to acquire every count
for i in range(self.count):
self.done.acquire()
- log.debug('Completed #' + `i` + '.')
+ log.debug('Completed. Thread #' + `i` + '.')
log.debug('All threads completed.')
Modified: gump/trunk/python/gump/utils/sync.py
==============================================================================
--- gump/trunk/python/gump/utils/sync.py (original)
+++ gump/trunk/python/gump/utils/sync.py Tue Oct 5 09:48:00 2004
@@ -180,10 +180,10 @@
srcname = os.path.join(src, name)
dstname = os.path.join(dst, name)
- except Exception, why:
- message = "Can't copy [%s] to [%s]: [%s]" % (`src`, `dst`, str(why))
+ except UnicodeDecodeError, why:
+ message = "Unicode Error. Can't copy [%s] in [%s] to [%s]: [%s]" % (`name`, `src`, `dst`, str(why))
log.exception(message)
- raise IOError, message
+ raise UnicodeDecodeError, message
try:
if symlinks and os.path.islink(srcname):