diff options
author | Christian Heimes <cheimes@redhat.com> | 2015-08-16 19:00:00 +0200 |
---|---|---|
committer | Christian Heimes <cheimes@redhat.com> | 2015-08-17 21:14:11 +0200 |
commit | 34664e5bc81195113e5b55ab526768a846347f5c (patch) | |
tree | c261e5434245802d75a4b41dc66130e46411fdfd /base/common/python | |
parent | f98ca7fa1903e12a4b2c49a70163077b3560dc1d (diff) | |
download | pki-34664e5bc81195113e5b55ab526768a846347f5c.tar.gz pki-34664e5bc81195113e5b55ab526768a846347f5c.tar.xz pki-34664e5bc81195113e5b55ab526768a846347f5c.zip |
Py3 modernization: libmodernize.fixes.fix_input_six
In Python 3 raw_input() has been renamed to input() and the old,
insecure input() builtin is gone. six.moves simplifies the transition.
It provides the former raw_input() function under the same import name
on Python 2 and 3.
Diffstat (limited to 'base/common/python')
-rw-r--r-- | base/common/python/pki/__init__.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/base/common/python/pki/__init__.py b/base/common/python/pki/__init__.py index 717c4fdeb..6bfb82719 100644 --- a/base/common/python/pki/__init__.py +++ b/base/common/python/pki/__init__.py @@ -23,11 +23,14 @@ This module contains top-level classes and functions used by the Dogtag project. """ from __future__ import absolute_import from __future__ import print_function + from functools import wraps import os import re import sys + import requests +from six.moves import input # pylint: disable=W0622 CONF_DIR = '/etc/pki' @@ -68,7 +71,7 @@ def read_text(message, done = False value = None while not done: - value = raw_input(message) + value = input(message) value = value.strip() if len(value) == 0: # empty value |