import pgp_mime as _pgp_mime
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
_pgp_mime.LOG.addHandler(syslog)
_color.USE_COLOR = args.color
+ _ENCODING = args.encoding
+
config = _configparser.ConfigParser()
config.read([
_os_path.expanduser(_os_path.join('~', '.config', 'smtplib.conf')),
- ])
+ ], encoding=_ENCODING)
func_args = _inspect.getargspec(args.func).args
kwargs = {}
"""
_LOG.debug('loading course from {}'.format(basedir))
config = _configparser.ConfigParser()
- config.read([_os_path.join(basedir, 'course.conf')])
+ config.read([_os_path.join(basedir, 'course.conf')], encoding=_ENCODING)
name = config.get('course', 'name')
names = {'robot': [config.get('course', 'robot').strip()]}
for option in ['assignments', 'professors', 'assistants', 'students']: