diff options
author | Scott Maxwell <scott@codecobblers.com> | 2013-11-19 07:30:45 -0800 |
---|---|---|
committer | Scott Maxwell <scott@codecobblers.com> | 2013-11-19 07:30:45 -0800 |
commit | 3ce336c88b7bfbfad03fab17bff8cb3c3a77176c (patch) | |
tree | 4ca12e253bc782025d756add21c755f3c336f07d /paramiko/file.py | |
parent | 01731fa2c34483ec6d429a23bf9d19126f63f618 (diff) | |
download | paramiko-3ce336c88b7bfbfad03fab17bff8cb3c3a77176c.tar.gz |
Change conditional from PY3 to PY2 to be better prepared for a possible Py4.
Diffstat (limited to 'paramiko/file.py')
-rw-r--r-- | paramiko/file.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/paramiko/file.py b/paramiko/file.py index a0d94ef2..c9f191a4 100644 --- a/paramiko/file.py +++ b/paramiko/file.py @@ -92,8 +92,8 @@ class BufferedFile (object): self._wbuffer = BytesIO() return - if PY3: - def __next__(self): + if PY2: + def next(self): """ Returns the next line from the input, or raises L{StopIteration} when EOF is hit. Unlike python file objects, it's okay to mix calls to @@ -109,7 +109,7 @@ class BufferedFile (object): raise StopIteration return line else: - def next(self): + def __next__(self): """ Returns the next line from the input, or raises L{StopIteration} when EOF is hit. Unlike python file objects, it's okay to mix calls to |