diff options
author | Brian Dolbec <dolsen@gentoo.org> | 2018-07-03 00:12:08 -0700 |
---|---|---|
committer | Brian Dolbec <dolsen@gentoo.org> | 2018-07-06 22:22:12 -0700 |
commit | 815569288668888bbd0df549f615a0813bfcb648 (patch) | |
tree | 34198f456de5251bb234ae0b62077de01997dcd4 | |
parent | gkeys: Implement use of the new Fetch class (diff) | |
download | gentoo-keys-815569288668888bbd0df549f615a0813bfcb648.tar.gz gentoo-keys-815569288668888bbd0df549f615a0813bfcb648.tar.bz2 gentoo-keys-815569288668888bbd0df549f615a0813bfcb648.zip |
gkeysgen/actions.py: Use gkeys py_input and _unicode declarations
Signed-off-by: Brian Dolbec <dolsen@gentoo.org>
-rw-r--r-- | gkeys-gen/gkeygen/actions.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gkeys-gen/gkeygen/actions.py b/gkeys-gen/gkeygen/actions.py index bd4a6ef..fc7a801 100644 --- a/gkeys-gen/gkeygen/actions.py +++ b/gkeys-gen/gkeygen/actions.py @@ -19,13 +19,13 @@ from collections import OrderedDict if sys.version_info[0] >= 3: from urllib.request import urlopen - py_input = input - _unicode = str else: from urllib2 import urlopen - py_input = raw_input - _unicode = unicode +from gkeys import ( + py_input, + _unicode, +) from gkeys.fileops import ensure_dirs from gkeys import log @@ -140,7 +140,7 @@ class Actions(object): shutil.copy(skelconfpath, newgpgconfpath) with open(newgpgconfpath, 'a') as conf: for line in urlopen(self.config.get_key('gpg-urls', args.spec)): - conf.write(_unicode(line.decode('utf-8'))) + conf.write(_unicode(line.decode('utf-8'))) def genkey(self, args): |