fnp
/
librarian.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Limit image size, fixes #4464.
[librarian.git]
/
src
/
librarian
/
util.py
diff --git
a/src/librarian/util.py
b/src/librarian/util.py
index
2c6b773
..
805cefd
100644
(file)
--- 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)
# by Paul Winkler
# http://code.activestate.com/recipes/81611-roman-numerals/
# PSFL (GPL compatible)
-from __future__ import print_function, unicode_literals
-
import os
import os
-import six
def int_to_roman(input):
def int_to_roman(input):
@@
-94,7
+91,7
@@
def roman_to_int(input):
...
ValueError: input is not a valid roman numeral: IL
"""
...
ValueError: input is not a valid roman numeral: IL
"""
- if not isinstance(input, s
ix.text_type
):
+ if not isinstance(input, s
tr
):
raise TypeError("expected string, got %s" % type(input))
input = input.upper()
nums = ['M', 'D', 'C', 'L', 'X', 'V', 'I']
raise TypeError("expected string, got %s" % type(input))
input = input.upper()
nums = ['M', 'D', 'C', 'L', 'X', 'V', 'I']
@@
-137,5
+134,5
@@
def get_translation(language):
return gettext.translation(
'messages',
localedir=os.path.join(os.path.dirname(__file__), 'locale'),
return gettext.translation(
'messages',
localedir=os.path.join(os.path.dirname(__file__), 'locale'),
- languages=[lang_code_3to2(language)],
+ languages=[lang_code_3to2(language)
, 'pl'
],
)
)