Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ActiveState/code
/ dedent
Method
dedent
recipes/Python/205451_Povray_for_python/recipe-205451.py:13–15 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
11
def
indent(self):
12
self.__indent += 1
13
def
dedent(self):
14
self.__indent -= 1
15
assert self.__indent >= 0
16
def
block_begin(self):
17
self.writeln(
"{"
)
18
self.indent()
Callers
15
block_end
Method · 0.95
test_exit_cleanly
Method · 0.80
test_exception
Method · 0.80
test_signal
Method · 0.80
test_appended_signal
Method · 0.80
test_kinterrupt
Method · 0.80
test_systemexit
Method · 0.80
test_called_once
Method · 0.80
test_cascade
Method · 0.80
test_all_exit_sigs
Method · 0.80
test_all_exit_sigs_with_sig
Method · 0.80
test_as_deco
Method · 0.80
Calls
no outgoing calls
Tested by
12
test_exit_cleanly
Method · 0.64
test_exception
Method · 0.64
test_signal
Method · 0.64
test_appended_signal
Method · 0.64
test_kinterrupt
Method · 0.64
test_systemexit
Method · 0.64
test_called_once
Method · 0.64
test_cascade
Method · 0.64
test_all_exit_sigs
Method · 0.64
test_all_exit_sigs_with_sig
Method · 0.64
test_as_deco
Method · 0.64
test_err_in_fun
Method · 0.64