Ignore:
Timestamp:
Aug 5, 2013, 6:34:34 AM (6 years ago)
Author:
Stefan Schwarzer <sschwarzer@…>
Branch:
default
Message:
Renamed `is_bin_mode` to `is_binary_mode`.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • ftputil/file.py

    r1349 r1350  
    163163            raise ValueError("can't have text and binary mode at once")
    164164        # Convenience variables
    165         is_bin_mode = "b" in mode
     165        is_binary_mode = "b" in mode
    166166        is_read_mode = "r" in mode
    167167        # Always use binary mode (see above).
     
    189189            else:
    190190                fobj = BufferedIO(fobj, is_writable=True)
    191         if not is_bin_mode:
     191        if not is_binary_mode:
    192192            fobj = io.TextIOWrapper(fobj, encoding=encoding,
    193193                                    errors=errors, newline=newline)
Note: See TracChangeset for help on using the changeset viewer.