Ignore:
Timestamp:
Dec 26, 2018, 3:22:08 PM (22 months ago)
Author:
Stefan Schwarzer <sschwarzer@…>
Branch:
default
Message:
Remove `compat.py`

This module was for Python 2/3 compatibility, similar to the `six`
package. Since the next version of ftputil will only support Python 3,
hardcode the types from `compat.py` in the code that used to use the
`compat` module.

There may still be redundant code that isn't needed when running the
tests under Python 3.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/test_file_transfer.py

    r1718 r1721  
    88import pytest
    99
    10 import ftputil.compat
    1110import ftputil.file_transfer
    1211import ftputil.stat
     
    8786        """Return a `BytesIO` object containing `count` "random" bytes."""
    8887        ints = (random.randint(0, 255) for i in range(count))
    89         return ftputil.compat.bytes_from_ints(ints)
     88        return bytes(ints)
    9089
    9190    def test_chunkwise_transfer_without_remainder(self):
Note: See TracChangeset for help on using the changeset viewer.