Kaydet (Commit) ac2bc277 authored tarafından Skip Montanaro's avatar Skip Montanaro

Python 2.2 doesn't have basestring.

üst 9c5a508e
......@@ -222,7 +222,7 @@ class ConfigParser:
configuration files in the list will be read. A single
filename may also be given.
"""
if isinstance(filenames, basestring):
if isinstance(filenames, (str, unicode)):
filenames = [filenames]
for filename in filenames:
try:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment