From 20835ad1041e36cdb6d67ba7ac7be6e092145067 Mon Sep 17 00:00:00 2001 From: Jean-Marie Traissard Date: Sun, 4 Feb 2007 14:09:38 +0000 Subject: [PATCH] Removing useless global vars (finally found a good debugger :) --- src/gajim.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/gajim.py b/src/gajim.py index 3e3a82f6d..565092e4b 100755 --- a/src/gajim.py +++ b/src/gajim.py @@ -162,6 +162,8 @@ if pritext: dlg.destroy() sys.exit() +del pritext + path = os.getcwd() if '.svn' in os.listdir(path) or '_svn' in os.listdir(path): # import gtkexcepthook only for those that run svn @@ -192,12 +194,14 @@ from common import helpers from common import optparser if verbose: gajim.verbose = True +del verbose import locale profile = unicode(profile, locale.getpreferredencoding()) import common.configpaths common.configpaths.init_profile(profile) +del profile gajimpaths = common.configpaths.gajimpaths pid_filename = gajimpaths['PID_FILE'] @@ -316,6 +320,7 @@ f = open(pid_filename, 'w') f.write(str(os.getpid())) f.close() del pid_dir +del f def on_exit(): # delete pid file on normal exit