[pybliographer/wip/gtk3] style: pyflakes



commit 159f13ed650bc8f5f17277c876bc3eef3b53496f
Author: Germán Poo-Caamaño <gpoo gnome org>
Date:   Tue Oct 10 14:45:39 2017 -0300

    style: pyflakes

 Pyblio/Style/Generic.py |    1 -
 Pyblio/Style/Parser.py  |    6 +++---
 Pyblio/Style/Utils.py   |    4 ++--
 Pyblio/Style/abbrv.py   |    3 +--
 Pyblio/Style/apa4e.py   |    1 -
 5 files changed, 6 insertions(+), 9 deletions(-)
---
diff --git a/Pyblio/Style/Generic.py b/Pyblio/Style/Generic.py
index 445c1ef..9967b53 100644
--- a/Pyblio/Style/Generic.py
+++ b/Pyblio/Style/Generic.py
@@ -23,7 +23,6 @@
 
 import string
 
-from Pyblio.Style import Parser
 from Pyblio import Autoload, recode
 
 
diff --git a/Pyblio/Style/Parser.py b/Pyblio/Style/Parser.py
index 03244c2..d4fe9b9 100644
--- a/Pyblio/Style/Parser.py
+++ b/Pyblio/Style/Parser.py
@@ -21,12 +21,12 @@
 
 ''' Parser for XML definitions of the bibliographic output '''
 
-from Pyblio import Open, Autoload
+import string, re
 
+from gettext import gettext as _
 from xml import sax
-from xml.sax.saxutils import escape, quoteattr
+from Pyblio import Open, Autoload
 
-import string, re
 
 _map = string.maketrans ('\t', ' ')
 _cpt = re.compile ('\s+')
diff --git a/Pyblio/Style/Utils.py b/Pyblio/Style/Utils.py
index ef59b42..b4dfc8b 100644
--- a/Pyblio/Style/Utils.py
+++ b/Pyblio/Style/Utils.py
@@ -19,8 +19,8 @@
 # 
 # 
 
-from Pyblio.Style import Parser
-from Pyblio import Fields, Autoload
+from Pyblio import Parser
+
 
 def generate (style_url, format, database, keys, output):
     
diff --git a/Pyblio/Style/abbrv.py b/Pyblio/Style/abbrv.py
index fecc055..25b2915 100644
--- a/Pyblio/Style/abbrv.py
+++ b/Pyblio/Style/abbrv.py
@@ -29,11 +29,10 @@
 
 import string
 
-from Pyblio.Style import Parser
 from Pyblio import Autoload, recode
-
 from Pyblio import pybtextvar
 
+
 def author_desc (group, coding, initials = 0, reverse = 0):
     """ Create a nice string describing a group of authors.
 
diff --git a/Pyblio/Style/apa4e.py b/Pyblio/Style/apa4e.py
index 4cf54a0..0b0cecb 100644
--- a/Pyblio/Style/apa4e.py
+++ b/Pyblio/Style/apa4e.py
@@ -26,7 +26,6 @@
 
 import string
 
-from Pyblio.Style import Parser
 from Pyblio import Autoload, recode
 
 


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