Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def _c_locale_time(d, format="%b %d %H:%M"):
with aioftp.common.setlocale("C"):
return d.strftime(format)
def _c_locale_time(d):
with aioftp.common.setlocale("C"):
return d.strftime("%b %d %H:%M")
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
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