Clean up some problems discovered with pylint and pychecker

Much of this is formatting to make pylint happy but it also fixes some
real bugs.
This commit is contained in:
Rob Crittenden
2009-08-11 17:08:09 -04:00
parent c781e8a57d
commit 8780751330
17 changed files with 99 additions and 107 deletions

View File

@@ -25,7 +25,6 @@
import os
import os.path
import errno
import shutil
import logging
import ConfigParser
@@ -110,13 +109,13 @@ class FileStore:
logging.debug(" -> Not backing up - '%s' doesn't exist", path)
return
(reldir, file) = os.path.split(path)
(reldir, backupfile) = os.path.split(path)
filename = ""
for i in range(8):
h = "%02x" % self.random.randint(0,255)
filename += h
filename += "-"+file
filename += "-"+backupfile
backup_path = os.path.join(self._path, filename)
if os.path.exists(backup_path):