Return-Path: Delivered-To: apmail-gump-commits-archive@www.apache.org Received: (qmail 11181 invoked from network); 29 Mar 2005 20:40:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 29 Mar 2005 20:40:56 -0000 Received: (qmail 85835 invoked by uid 500); 29 Mar 2005 20:40:56 -0000 Mailing-List: contact commits-help@gump.apache.org; run by ezmlm Precedence: bulk Reply-To: commits@gump.apache.org List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list commits@gump.apache.org Received: (qmail 85820 invoked by uid 99); 29 Mar 2005 20:40:56 -0000 X-ASF-Spam-Status: No, hits=-9.8 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from minotaur.apache.org (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.28) with SMTP; Tue, 29 Mar 2005 12:40:56 -0800 Received: (qmail 11176 invoked by uid 65534); 29 Mar 2005 20:40:55 -0000 Message-ID: <20050329204055.11175.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Mailer: svnmailer-1.0.0-dev Date: Tue, 29 Mar 2005 20:40:55 -0000 Subject: svn commit: r159424 - gump/trunk/python/gump/util/sync.py To: commits@gump.apache.org From: ajack@apache.org X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: ajack Date: Tue Mar 29 12:40:53 2005 New Revision: 159424 URL: http://svn.apache.org/viewcvs?view=3Drev&rev=3D159424 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= =3Ddiff&r1=3D159423&r2=3D159424 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D --- 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 @@ =20 def __init__(self, sourcedir, targetdir, action =3D SYNC_ACTION, outpu= t=3DNone, debug=3D0): Annotatable.__init__(self) - self.sourcedir =3D sourcedir - self.targetdir =3D targetdir + self.sourcedir =3D getStringFromUnicode(sourcedir) + self.targetdir =3D getStringFromUnicode(targetdir) self.action =3D action =20 if SYNC_ACTION=3D=3Daction: @@ -178,9 +178,6 @@ # for name in names: =20 - # :TODO: Hack for Latin_1 - name =3D getStringFromUnicode(name) - =20 try: =20 srcname =3D os.path.join(src, name) dstname =3D os.path.join(dst, name) @@ -222,9 +219,6 @@ """ for afile in existingfiles: =20 - # :TODO: Hack for LATIN_1 - afile =3D getStringFromUnicode(afile) - =20 fullsourcefile =3D os.path.join(sourcedir, afile) fulldestfile =3D os.path.join(destdir, afile) if not afile in acceptablefiles: @@ -258,9 +252,6 @@ removed =3D [] for afile in existingfiles: =20 - # :TODO: Hack for latin_1 - afile =3D getStringFromUnicode(afile) - =20 if afile in acceptablefiles: =20 fullsourcefile =3D os.path.join(sourcedir, afile) @@ -283,9 +274,6 @@ =20 # Do the work for afile in removed: - # :TODO: Hack for latin_1 - afile =3D getStringFromUnicode(afile) - =20 existingfiles.remove(afile) =20 =20 def maybecopy(self, srcname, dstname):