mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
Patch #1337756: fileinput now accepts Unicode filenames.
This commit is contained in:
parent
e9b1949f70
commit
e466217ab9
3 changed files with 13 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue