[postr] Remove unused module imports



commit 2962fb382337d330f26255a04075f90cc9602770
Author: Germán Poo-Caamaño <gpoo gnome org>
Date:   Mon Jul 7 09:14:30 2014 -0700

    Remove unused module imports
    
    Make them explicit to pass pyflakes

 nautilus/postrExtension.py  |    1 -
 setup.py                    |    4 ++--
 src/AboutDialog.py          |    2 +-
 src/AuthenticationDialog.py |    2 +-
 src/ErrorDialog.py          |    2 +-
 src/GroupSelector.py        |    2 +-
 src/ImageList.py            |    2 +-
 src/StatusBar.py            |    2 +-
 src/TagsEntry.py            |    2 +-
 src/flickrest.py            |    1 -
 src/iptcinfo.py             |    2 +-
 src/postr.py                |   10 +++++-----
 12 files changed, 15 insertions(+), 17 deletions(-)
---
diff --git a/nautilus/postrExtension.py b/nautilus/postrExtension.py
index a17b79e..8865655 100644
--- a/nautilus/postrExtension.py
+++ b/nautilus/postrExtension.py
@@ -20,7 +20,6 @@ gettext.install('postr')
 
 from gi.repository import Nautilus, GObject
 import os, os.path
-from urllib import unquote
 
 PROGRAM_NAME = 'postr'
 
diff --git a/setup.py b/setup.py
index 36b0bcb..fb94bce 100644
--- a/setup.py
+++ b/setup.py
@@ -5,8 +5,8 @@ from shutil import copyfile
 from distutils.core import setup
 from distutils.command.install_data import install_data
 from glob import glob
-from DistUtilsExtra.command import *
-import distutils.cmd
+from DistUtilsExtra.command import build_help, build_extra, build_icons
+from DistUtilsExtra.command import build_i18n, clean_i18n
 import os.path
 from src.version import __version__
 
diff --git a/src/AboutDialog.py b/src/AboutDialog.py
index 0c71971..f4590ca 100644
--- a/src/AboutDialog.py
+++ b/src/AboutDialog.py
@@ -17,7 +17,7 @@
 # this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
 # St, Fifth Floor, Boston, MA 02110-1301 USA
 
-from gi.repository import Gtk, GObject
+from gi.repository import Gtk
 from version import __version__
 
 class AboutDialog(Gtk.AboutDialog):
diff --git a/src/AuthenticationDialog.py b/src/AuthenticationDialog.py
index e4a0706..2cff011 100644
--- a/src/AuthenticationDialog.py
+++ b/src/AuthenticationDialog.py
@@ -16,7 +16,7 @@
 # St, Fifth Floor, Boston, MA 02110-1301 USA
 
 import os
-from gi.repository import Gtk, GConf, GObject
+from gi.repository import Gtk, GConf
 
 def on_url_clicked(button, url):
     """Global LinkButton handler that starts the default GNOME HTTP handler, or
diff --git a/src/ErrorDialog.py b/src/ErrorDialog.py
index f6024d3..483e545 100644
--- a/src/ErrorDialog.py
+++ b/src/ErrorDialog.py
@@ -15,7 +15,7 @@
 # this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
 # St, Fifth Floor, Boston, MA 02110-1301 USA
 
-from gi.repository import Gtk, GObject
+from gi.repository import Gtk
 
 class ErrorDialog(Gtk.MessageDialog):
     def __init__(self, parent=None):
diff --git a/src/GroupSelector.py b/src/GroupSelector.py
index 6c32ac9..a94aeb1 100644
--- a/src/GroupSelector.py
+++ b/src/GroupSelector.py
@@ -15,7 +15,7 @@
 # this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
 # St, Fifth Floor, Boston, MA 02110-1301 USA
 
-from gi.repository import Gtk, GObject, Pango, GdkPixbuf
+from gi.repository import Gtk, GObject, GdkPixbuf
 from ErrorDialog import ErrorDialog
 import util
 
diff --git a/src/ImageList.py b/src/ImageList.py
index 8d96a56..6ce88fa 100644
--- a/src/ImageList.py
+++ b/src/ImageList.py
@@ -17,7 +17,7 @@
 # this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
 # St, Fifth Floor, Boston, MA 02110-1301 USA
 
-from gi.repository import Gtk, Pango, GObject, Gdk
+from gi.repository import Gtk, Pango, Gdk
 
 import ImageStore
 
diff --git a/src/StatusBar.py b/src/StatusBar.py
index 32eee67..a11f4e4 100644
--- a/src/StatusBar.py
+++ b/src/StatusBar.py
@@ -15,7 +15,7 @@
 # this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
 # St, Fifth Floor, Boston, MA 02110-1301 USA
 
-from gi.repository import Gtk, GObject
+from gi.repository import Gtk
 from ErrorDialog import ErrorDialog
 from util import greek
 from xml.sax.saxutils import escape
diff --git a/src/TagsEntry.py b/src/TagsEntry.py
index 79c5a64..14cbebf 100644
--- a/src/TagsEntry.py
+++ b/src/TagsEntry.py
@@ -15,7 +15,7 @@
 # this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
 # St, Fifth Floor, Boston, MA 02110-1301 USA
 
-from gi.repository import Gtk, GObject
+from gi.repository import Gtk
 from twisted.python import log
 
 _USER_POPULAR_TAGS = 200
diff --git a/src/flickrest.py b/src/flickrest.py
index c1d83af..abfd855 100644
--- a/src/flickrest.py
+++ b/src/flickrest.py
@@ -18,7 +18,6 @@
 import logging, os, mimetools, urllib
 from gi.repository import Gio
 from twisted.internet import defer
-from twisted.python.failure import Failure
 from twisted.python import log
 import proxyclient as client
 
diff --git a/src/iptcinfo.py b/src/iptcinfo.py
index f7dc19d..7352b43 100644
--- a/src/iptcinfo.py
+++ b/src/iptcinfo.py
@@ -239,7 +239,7 @@ SURELY_WRITE_CHARSET_INFO = False
 
 from struct import pack, unpack
 from cStringIO import StringIO
-import sys, re, codecs, os
+import sys, re, os
 
 class String(basestring):
   def __iadd__(self, other):
diff --git a/src/postr.py b/src/postr.py
index b064b5f..3dc9c30 100644
--- a/src/postr.py
+++ b/src/postr.py
@@ -17,14 +17,14 @@
 # this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
 # St, Fifth Floor, Boston, MA 02110-1301 USA
 
-import logging, os, urllib
-from urlparse import urlparse
+# import logging
+import os
 from os.path import basename
 from tempfile import mkstemp
 from twisted.python import log
 from twisted.internet import reactor
 
-from gi.repository import GObject, Gtk, GConf, GdkPixbuf, Gio, Gdk, GLib
+from gi.repository import Gtk, GConf, GdkPixbuf, Gio, Gdk, GLib
 
 #FIXME
 #import gnome.ui
@@ -39,13 +39,13 @@ from AboutDialog import AboutDialog
 from AuthenticationDialog import AuthenticationDialog
 from ProgressDialog import ProgressDialog
 from ErrorDialog import ErrorDialog
-import ImageStore, ImageList, StatusBar, PrivacyCombo, SafetyCombo, GroupSelector, ContentTypeCombo, 
SetCombo, LicenseCombo, TagsEntry
+import ImageStore, ImageList, GroupSelector
 from proxyclient import EXTRA_STEP_SET_ID, EXTRA_STEP_GROUPS, EXTRA_STEP_LICENSE, EXTRA_STEP_NEW_SET, 
UploadProgressTracker
 
 from flickrest import Flickr
 import EXIF
 from iptcinfo import IPTCInfo
-from util import *
+from util import get_thumb_size, get_buddyicon, get_glade_widgets, align_labels
 from datetime import datetime
 import shelve
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]