X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/e870e40d5fb975ba9ec0ec327014b3d16eea51e4..ac9ba215113d29655e142f23ab398c5c2765df1e:/src/librarian/util.py diff --git a/src/librarian/util.py b/src/librarian/util.py index 63e7996..805cefd 100644 --- a/src/librarian/util.py +++ b/src/librarian/util.py @@ -2,10 +2,7 @@ # by Paul Winkler # http://code.activestate.com/recipes/81611-roman-numerals/ # PSFL (GPL compatible) -from __future__ import print_function, unicode_literals - import os -import six def int_to_roman(input): @@ -94,7 +91,7 @@ def roman_to_int(input): ... ValueError: input is not a valid roman numeral: IL """ - if not isinstance(input, six.text_type): + if not isinstance(input, str): raise TypeError("expected string, got %s" % type(input)) input = input.upper() nums = ['M', 'D', 'C', 'L', 'X', 'V', 'I']