gump-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aj...@apache.org
Subject svn commit: r159424 - gump/trunk/python/gump/util/sync.py
Date Tue, 29 Mar 2005 20:40:55 GMT
Author: ajack
Date: Tue Mar 29 12:40:53 2005
New Revision: 159424

URL: http://svn.apache.org/viewcvs?view=rev&rev=159424
Log:
Yet another try.

Modified:
    gump/trunk/python/gump/util/sync.py

Modified: gump/trunk/python/gump/util/sync.py
URL: http://svn.apache.org/viewcvs/gump/trunk/python/gump/util/sync.py?view=diff&r1=159423&r2=159424
==============================================================================
--- gump/trunk/python/gump/util/sync.py (original)
+++ gump/trunk/python/gump/util/sync.py Tue Mar 29 12:40:53 2005
@@ -37,8 +37,8 @@
 
     def __init__(self, sourcedir, targetdir, action = SYNC_ACTION, output=None, debug=0):
         Annotatable.__init__(self)
-        self.sourcedir = sourcedir
-        self.targetdir = targetdir
+        self.sourcedir = getStringFromUnicode(sourcedir)
+        self.targetdir = getStringFromUnicode(targetdir)
         self.action = action
         
         if SYNC_ACTION==action:
@@ -178,9 +178,6 @@
         #
         for name in names:
             
-            # :TODO: Hack for Latin_1
-            name = getStringFromUnicode(name)
-            
             try:    
                 srcname = os.path.join(src, name)
                 dstname = os.path.join(dst, name)
@@ -222,9 +219,6 @@
         """
         for afile in existingfiles:
             
-            # :TODO: Hack for LATIN_1
-            afile = getStringFromUnicode(afile)
-            
             fullsourcefile = os.path.join(sourcedir, afile)
             fulldestfile = os.path.join(destdir, afile)
             if not afile in acceptablefiles:
@@ -258,9 +252,6 @@
         removed = []
         for afile in existingfiles:
             
-            # :TODO: Hack for latin_1
-            afile = getStringFromUnicode(afile)
-            
             if afile in acceptablefiles:
                                 
                 fullsourcefile = os.path.join(sourcedir, afile)
@@ -283,9 +274,6 @@
                     
         # Do the work
         for afile in removed:
-            # :TODO: Hack for latin_1
-            afile = getStringFromUnicode(afile)
-           
             existingfiles.remove(afile)             
                 
     def maybecopy(self, srcname, dstname):



Mime
View raw message