Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
156
def
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]'
)
Callers
5
test_detach_with_default
Method · 0.85
test_detach_with_config_file
Method · 0.85
test_detach_with_arg
Method · 0.85
test_detach_with_default
Method · 0.85
test_detach_with_config_file
Method · 0.85
Calls
1
match
Method · 0.80
Tested by
5
test_detach_with_default
Method · 0.68
test_detach_with_config_file
Method · 0.68
test_detach_with_arg
Method · 0.68
test_detach_with_default
Method · 0.68
test_detach_with_config_file
Method · 0.68