diff options
| author | Georg Brandl <georg@python.org> | 2006-02-19 09:51:27 +0000 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2006-02-19 09:51:27 +0000 |
| commit | e466217ab954c5a53fc2e0b78876385362120900 (patch) | |
| tree | f325d50baeb8488a113024c10494d50874d3f4ec /Lib/fileinput.py | |
| parent | e9b1949f70ff985e17e1ce5592b59073d101bbab (diff) | |
| download | cpython-git-e466217ab954c5a53fc2e0b78876385362120900.tar.gz | |
Patch #1337756: fileinput now accepts Unicode filenames.
Diffstat (limited to 'Lib/fileinput.py')
| -rw-r--r-- | Lib/fileinput.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/fileinput.py b/Lib/fileinput.py index 27ccc3bfed..5c06627238 100644 --- a/Lib/fileinput.py +++ b/Lib/fileinput.py @@ -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: |
