From 441021b0cb719f734f3f8e86fa9fe6d718ab2c23 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Mon, 31 Mar 2008 12:26:49 +0000 Subject: [PATCH] Remove some debug prints. --- deluge/config.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/deluge/config.py b/deluge/config.py index 884151938..e5bc1bd20 100644 --- a/deluge/config.py +++ b/deluge/config.py @@ -61,7 +61,6 @@ class Config: self.save() def __del__(self): - log.debug("Config object deconstructing..") self.save() def load(self, filename=None): @@ -72,7 +71,6 @@ class Config: filename = self.config_file try: # Un-pickle the file and update the config dictionary - log.debug("Opening pickled file for load..") pkl_file = open(filename, "rb") filedump = cPickle.load(pkl_file) self.config.update(filedump) @@ -80,7 +78,6 @@ class Config: except IOError: log.warning("IOError: Unable to load file '%s'", filename) except EOFError: - log.debug("Closing pickled file..") pkl_file.close() def save(self, filename=None): @@ -92,22 +89,18 @@ class Config: # Check to see if the current config differs from the one on disk # We will only write a new config file if there is a difference try: - log.debug("Opening pickled file for comparison..") pkl_file = open(filename, "rb") filedump = cPickle.load(pkl_file) pkl_file.close() if filedump == self.config: # The config has not changed so lets just return - log.debug("Not writing config file due to no changes..") return except IOError: log.warning("IOError: Unable to open file: '%s'", filename) try: - log.debug("Opening pickled file for save..") pkl_file = open(filename, "wb") cPickle.dump(self.config, pkl_file) - log.debug("Closing pickled file..") pkl_file.close() except IOError: log.warning("IOError: Unable to save file '%s'", filename)