Import pygrader, instead of pygrader.ENCODING.
[pygrader.git] / bin / pg.py
index b308278b1c0412419b536ab7e895e0c322be13a9..d035d1812c3660ef65e8a966a4c6fba89e3df5fd 100755 (executable)
--- a/bin/pg.py
+++ b/bin/pg.py
@@ -30,8 +30,8 @@ import sys as _sys
 
 import pgp_mime as _pgp_mime
 
+import pygrader as _pygrader
 from pygrader import __version__
-from pygrader import ENCODING as _ENCODING
 from pygrader import LOG as _LOG
 from pygrader import color as _color
 from pygrader.email import test_smtp as _test_smtp
@@ -185,12 +185,12 @@ if __name__ == '__main__':
         _pgp_mime.LOG.addHandler(syslog)
     _color.USE_COLOR = args.color
 
-    _ENCODING = args.encoding
+    _pygrader.ENCODING = args.encoding
 
     config = _configparser.ConfigParser()
     config.read([
             _os_path.expanduser(_os_path.join('~', '.config', 'smtplib.conf')),
-            ], encoding=_ENCODING)
+            ], encoding=_pygrader.ENCODING)
 
     func_args = _inspect.getargspec(args.func).args
     kwargs = {}