Skip to content

Commit 9d37c1d

Browse files
author
Alexander Smishlajev
committed
oops. isinstance() did not accept tuples in 2.1.
1 parent 65c3edb commit 9d37c1d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

roundup/i18n.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717
#
18-
# $Id: i18n.py,v 1.13 2004-11-17 06:56:00 a1s Exp $
18+
# $Id: i18n.py,v 1.14 2004-11-17 07:18:27 a1s Exp $
1919

2020
"""
2121
RoundUp Internationalization (I18N)
@@ -89,7 +89,7 @@ def find_locales(language=None):
8989
if val:
9090
languages = val.split(':')
9191
break
92-
elif isinstance(language, (str, unicode)):
92+
elif isinstance(language, str) or isinstance(language, unicode):
9393
languages = [language]
9494
else:
9595
# 'language' must be iterable

0 commit comments

Comments
 (0)