[pybliographer/wip/gtk3] scripts: pyflakes



commit 3c16fb8f5f8c1fa27052a00dc76184b0c28ea324
Author: Germán Poo-Caamaño <gpoo gnome org>
Date:   Tue Oct 10 14:54:18 2017 -0300

    scripts: pyflakes

 scripts/pybliocheck.py   |    2 ++
 scripts/pybliocompact.py |    4 ++++
 scripts/pyblioconvert.py |    4 +++-
 scripts/pyblioformat.py  |    8 +++++---
 scripts/pybliotex.py     |    3 ++-
 scripts/pybliotext.py    |    7 ++++---
 6 files changed, 20 insertions(+), 8 deletions(-)
---
diff --git a/scripts/pybliocheck.py b/scripts/pybliocheck.py
index 15977bc..fcacc51 100644
--- a/scripts/pybliocheck.py
+++ b/scripts/pybliocheck.py
@@ -24,10 +24,12 @@ import os, sys, string
 from Pyblio import Config, Exceptions
 from gettext import gettext as _
 from gettext import ngettext as _n
+from Pyblio.Open import bibopen
 
 import locale
 charset = locale.getlocale () [1] or 'ascii'
 
+
 # check the arguments
 if len (sys.argv) < 3:
     print _("usage: pybliocheck <file | directory>...").encode (charset)
diff --git a/scripts/pybliocompact.py b/scripts/pybliocompact.py
index 904cf1e..f78b652 100644
--- a/scripts/pybliocompact.py
+++ b/scripts/pybliocompact.py
@@ -21,11 +21,15 @@
 # 
 
 import string, os, re, copy, sys
+
+from gettext import gettext as _
 from Pyblio import Base, Config, Fields, Key
+from Pyblio.Open import bibopen, bibwrite
 
 import locale
 charset = locale.getlocale () [1] or 'ascii'
 
+
 def usage ():
     print _("usage: pybliocompact <latexfile> <bibtexfiles...>").encode (charset)
     return
diff --git a/scripts/pyblioconvert.py b/scripts/pyblioconvert.py
index 5ecf7ed..b32fb30 100644
--- a/scripts/pyblioconvert.py
+++ b/scripts/pyblioconvert.py
@@ -20,11 +20,13 @@
 # 
 # 
 
-import os, sys, string
+import sys, string
 
+from gettext import gettext as _
 import locale
 charset = locale.getlocale () [1] or 'ascii'
 
+
 if len (sys.argv) < 4 or len (sys.argv) > 5:
     print _("usage: pyblioconvert <source>..<target> <input> [output]").encode (charset)
     sys.exit (1)
diff --git a/scripts/pyblioformat.py b/scripts/pyblioformat.py
index fa7ab8d..8deb384 100644
--- a/scripts/pyblioformat.py
+++ b/scripts/pyblioformat.py
@@ -22,14 +22,16 @@
 
 import string, sys, os, getopt
 
-from Pyblio.Output import latexutils
-
-from Pyblio import Base, Autoload
+from gettext import gettext as _
+from Pyblio import Autoload, Fields
+from Pyblio.Open import bibopen
 from Pyblio.Style import Utils
 
+
 import locale
 charset = locale.getlocale () [1] or 'ascii'
 
+
 def usage ():
     print _("""usage: pyblioformat [options] <database...>
 
diff --git a/scripts/pybliotex.py b/scripts/pybliotex.py
index e889519..6ca060a 100644
--- a/scripts/pybliotex.py
+++ b/scripts/pybliotex.py
@@ -22,9 +22,10 @@
 
 import string, sys, os
 
+from gettext import gettext as _
 from Pyblio.Output import latexutils
 
-from Pyblio import Base, Autoload, Fields
+from Pyblio import Autoload, Fields
 from Pyblio.Style import Utils
 
 import locale
diff --git a/scripts/pybliotext.py b/scripts/pybliotext.py
index c20eed9..6403f10 100644
--- a/scripts/pybliotext.py
+++ b/scripts/pybliotext.py
@@ -29,14 +29,15 @@
 import string, os, re, copy, sys, getopt
 from shutil import copyfile
 
-from Pyblio import Base, Key, Autoload
+from gettext import gettext as _
+from Pyblio import Base, Autoload, Key, Fields, pybtextvar
+from Pyblio.Open import bibopen
 from Pyblio.Style import Utils
 
-from Pyblio import pybtextvar
-
 import locale
 charset = locale.getlocale () [1] or 'ascii'
 
+
 def usage ():
     print _("usage: pybliotext [-o outputfile] [-s style] <textfile> <bibfiles...>").encode (charset)
     return


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