remove unused import / variable

This commit is contained in:
Yann Leboulanger 2017-08-24 00:06:34 +02:00
parent 1a352c0e47
commit 2b065c0e58
1 changed files with 3 additions and 7 deletions

View File

@ -39,7 +39,6 @@
import sys
import os
import logging
import signal
import locale
import gi
@ -161,7 +160,7 @@ class GajimApplication(Gtk.Application):
sys.path.append('.')
APP = 'gajim'
DIR = '../po'
lang, enc = locale.getdefaultlocale()
lang = locale.getdefaultlocale()[0]
os.environ['LANG'] = lang
gettext.bindtextdomain(APP, DIR)
gettext.textdomain(APP)
@ -228,9 +227,6 @@ class GajimApplication(Gtk.Application):
signal.signal(signal.SIGINT, sigint_cb)
signal.signal(signal.SIGTERM, sigint_cb)
print("Encodings: d:{}, fs:{}, p:{}".format(sys.getdefaultencoding(),
sys.getfilesystemencoding(), locale.getpreferredencoding()))
# Set Application Menu
app.app = self
path = os.path.join(configpaths.get('GUI'), 'application_menu.ui')
@ -409,5 +405,5 @@ class GajimApplication(Gtk.Application):
if __name__ == '__main__':
app = GajimApplication()
app.run(sys.argv)
appli = GajimApplication()
appli.run(sys.argv)