From 7d525a35f4bbaa3f37dc0ad575e45aa8eeafb799 Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Sat, 7 Oct 2006 12:56:21 +0000 Subject: [PATCH] no need to import 2 modules in gajim.py --- src/gajim.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/gajim.py b/src/gajim.py index d24f0cd91..2c2409940 100755 --- a/src/gajim.py +++ b/src/gajim.py @@ -72,16 +72,14 @@ except exceptions.PysqliteNotAvailable, e: if os.name == 'nt': try: import winsound # windows-only built-in module for playing wav - import win32api - import win32con except: pritext = _('Gajim needs pywin32 to run') sectext = _('Please make sure that Pywin32 is installed on your system. You can get it at %s') % 'http://sourceforge.net/project/showfiles.php?group_id=78018' if pritext: dlg = gtk.MessageDialog(None, - gtk.DIALOG_DESTROY_WITH_PARENT | gtk.DIALOG_MODAL, - gtk.MESSAGE_ERROR, gtk.BUTTONS_OK, message_format = pritext) + gtk.DIALOG_DESTROY_WITH_PARENT | gtk.DIALOG_MODAL, + gtk.MESSAGE_ERROR, gtk.BUTTONS_OK, message_format = pritext) dlg.format_secondary_text(sectext) dlg.run()