How to use the aioftp.common function in aioftp

To help you get started, we’ve selected a few aioftp examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github aio-libs / aioftp / tests / test_simple_functions.py View on Github external
def _c_locale_time(d, format="%b %d %H:%M"):
    with aioftp.common.setlocale("C"):
        return d.strftime(format)
github aio-libs / aioftp / tests / test-simple-functions.py View on Github external
def _c_locale_time(d):
    with aioftp.common.setlocale("C"):
        return d.strftime("%b %d %H:%M")
github aio-libs / aioftp / aioftp / errors.py View on Github external
def __init__(self, expected_codes, received_codes, info):
        super().__init__(f"Waiting for {expected_codes} but got "
                         f"{received_codes} {info!r}")
        self.expected_codes = common.wrap_with_container(expected_codes)
        self.received_codes = common.wrap_with_container(received_codes)
        self.info = info
github aio-libs / aioftp / aioftp / errors.py View on Github external
def __init__(self, expected_codes, received_codes, info):
        super().__init__(f"Waiting for {expected_codes} but got "
                         f"{received_codes} {info!r}")
        self.expected_codes = common.wrap_with_container(expected_codes)
        self.received_codes = common.wrap_with_container(received_codes)
        self.info = info