Ignore:
Timestamp:
Mar 31, 2013, 1:16:00 PM (6 years ago)
Author:
Stefan Schwarzer <sschwarzer@…>
Branch:
default
Message:
Python 2/3 compatibility changes, based on a `2to3` run.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • ftputil/file.py

    r1196 r1199  
    156156        return self
    157157
    158     def next(self):
     158    def __next__(self):
    159159        """
    160160        Return the next line or raise `StopIteration`, if there are
     
    167167        else:
    168168            raise StopIteration
     169
     170    # For Python 2 compatibility
     171    next = __next__
    169172
    170173    def write(self, data):
Note: See TracChangeset for help on using the changeset viewer.