Removing useless global vars (finally found a good debugger :)
This commit is contained in:
parent
d37e7d8e3e
commit
20835ad104
1 changed files with 5 additions and 0 deletions
|
@ -162,6 +162,8 @@ if pritext:
|
||||||
dlg.destroy()
|
dlg.destroy()
|
||||||
sys.exit()
|
sys.exit()
|
||||||
|
|
||||||
|
del pritext
|
||||||
|
|
||||||
path = os.getcwd()
|
path = os.getcwd()
|
||||||
if '.svn' in os.listdir(path) or '_svn' in os.listdir(path):
|
if '.svn' in os.listdir(path) or '_svn' in os.listdir(path):
|
||||||
# import gtkexcepthook only for those that run svn
|
# import gtkexcepthook only for those that run svn
|
||||||
|
@ -192,12 +194,14 @@ from common import helpers
|
||||||
from common import optparser
|
from common import optparser
|
||||||
|
|
||||||
if verbose: gajim.verbose = True
|
if verbose: gajim.verbose = True
|
||||||
|
del verbose
|
||||||
|
|
||||||
import locale
|
import locale
|
||||||
profile = unicode(profile, locale.getpreferredencoding())
|
profile = unicode(profile, locale.getpreferredencoding())
|
||||||
|
|
||||||
import common.configpaths
|
import common.configpaths
|
||||||
common.configpaths.init_profile(profile)
|
common.configpaths.init_profile(profile)
|
||||||
|
del profile
|
||||||
gajimpaths = common.configpaths.gajimpaths
|
gajimpaths = common.configpaths.gajimpaths
|
||||||
|
|
||||||
pid_filename = gajimpaths['PID_FILE']
|
pid_filename = gajimpaths['PID_FILE']
|
||||||
|
@ -316,6 +320,7 @@ f = open(pid_filename, 'w')
|
||||||
f.write(str(os.getpid()))
|
f.write(str(os.getpid()))
|
||||||
f.close()
|
f.close()
|
||||||
del pid_dir
|
del pid_dir
|
||||||
|
del f
|
||||||
|
|
||||||
def on_exit():
|
def on_exit():
|
||||||
# delete pid file on normal exit
|
# delete pid file on normal exit
|
||||||
|
|
Loading…
Add table
Reference in a new issue