MCPcopy Create free account
hub / github.com/dateutil/dateutil / adjust_encoding

Function adjust_encoding

src/dateutil/tz/_common.py:21–26  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

19 if PY2:
20 @wraps(namefunc)
21 def adjust_encoding(*args, **kwargs):
22 name = namefunc(*args, **kwargs)
23 if name is not None:
24 name = name.encode()
25
26 return name
27
28 return adjust_encoding
29 else:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected