Patch #1337756: fileinput now accepts Unicode filenames.

This commit is contained in:
Georg Brandl 2006-02-19 09:51:27 +00:00
parent e9b1949f70
commit e466217ab9
3 changed files with 13 additions and 1 deletions

View file

@ -184,7 +184,7 @@ class FileInput:
"""
def __init__(self, files=None, inplace=0, backup="", bufsize=0):
if type(files) == type(''):
if isinstance(files, basestring):
files = (files,)
else:
if files is None: