MCPcopy Create free account
hub / github.com/docker/docker-py / ctrl_with

Function ctrl_with

tests/helpers.py:156–160  ·  view source on GitHub ↗
(char)

Source from the content-addressed store, hash-verified

154
155
156def ctrl_with(char):
157 if re.match('[a-z]', char):
158 return chr(ord(char) - ord('a') + 1).encode('ascii')
159 else:
160 raise Exception('char must be [a-z]')

Calls 1

matchMethod · 0.80