summaryrefslogtreecommitdiff
path: root/Lib/fileinput.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2002-04-07 06:36:23 +0000
committerGuido van Rossum <guido@python.org>2002-04-07 06:36:23 +0000
commit8ca162f417c6a72faf02831457b4054a73087b78 (patch)
tree2d882f9a1fe596830f47f1132a5294633ba05f33 /Lib/fileinput.py
parentb8bff3f4a9e3be8b43a394d3795a46af2831fe5e (diff)
downloadcpython-git-8ca162f417c6a72faf02831457b4054a73087b78.tar.gz
Partial introduction of bools where appropriate.
Diffstat (limited to 'Lib/fileinput.py')
-rw-r--r--Lib/fileinput.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/fileinput.py b/Lib/fileinput.py
index 870322c599..77487edd70 100644
--- a/Lib/fileinput.py
+++ b/Lib/fileinput.py
@@ -154,7 +154,7 @@ class FileInput:
self._lineno = 0
self._filelineno = 0
self._file = None
- self._isstdin = 0
+ self._isstdin = False
self._backupfilename = None
self._buffer = []
self._bufindex = 0
@@ -214,7 +214,7 @@ class FileInput:
try: os.unlink(backupfilename)
except: pass
- self._isstdin = 0
+ self._isstdin = False
self._buffer = []
self._bufindex = 0
@@ -235,12 +235,12 @@ class FileInput:
self._files = self._files[1:]
self._filelineno = 0
self._file = None
- self._isstdin = 0
+ self._isstdin = False
self._backupfilename = 0
if self._filename == '-':
self._filename = '<stdin>'
self._file = sys.stdin
- self._isstdin = 1
+ self._isstdin = True
else:
if self._inplace:
self._backupfilename = (