diff options
Diffstat (limited to 'daemons')
-rw-r--r-- | daemons/ipa-otpd/test.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/daemons/ipa-otpd/test.py b/daemons/ipa-otpd/test.py index 824f8a292..0ccd8b0e4 100644 --- a/daemons/ipa-otpd/test.py +++ b/daemons/ipa-otpd/test.py @@ -20,11 +20,12 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -import StringIO import struct import subprocess import sys +from six import StringIO + try: from pyrad import packet from pyrad.dictionary import Dictionary @@ -40,7 +41,7 @@ ATTRIBUTE User-Password 2 string ATTRIBUTE NAS-Identifier 32 string """ -dct = Dictionary(StringIO.StringIO(DICTIONARY)) +dct = Dictionary(StringIO(DICTIONARY)) proc = subprocess.Popen(["./ipa-otpd", sys.argv[1]], stdin=subprocess.PIPE, stdout=subprocess.PIPE) |