[Checkins] SVN: z3c.vcsync/trunk/src/z3c/vcsync/vc.py Get rid of a case that can cause a unicode error. In general work

Martijn Faassen faassen at infrae.com
Wed Jul 4 15:33:35 EDT 2007


Log message for revision 77428:
  Get rid of a case that can cause a unicode error. In general work 
  needs to be done to either restrict input data to ascii or to encode
  to something py.path and SVN will like.
  

Changed:
  U   z3c.vcsync/trunk/src/z3c/vcsync/vc.py

-=-
Modified: z3c.vcsync/trunk/src/z3c/vcsync/vc.py
===================================================================
--- z3c.vcsync/trunk/src/z3c/vcsync/vc.py	2007-07-04 19:27:20 UTC (rev 77427)
+++ z3c.vcsync/trunk/src/z3c/vcsync/vc.py	2007-07-04 19:33:34 UTC (rev 77428)
@@ -110,7 +110,8 @@
             else:
                 # there is no directory, so it must be a file to remove
                 # find the file and remove it
-                file_paths = list(container_dir_path.listdir('%s.*' % name))
+                file_paths = list(container_dir_path.listdir(
+                    str('%s.*' % name)))
                 assert len(file_paths) == 1
                 file_paths[0].remove()
         # now save all files that have been modified/added



More information about the Checkins mailing list