MCPcopy Index your code
hub / github.com/python/cpython / resource_info

Method resource_info

Lib/test/libregrtest/save_env.py:321–326  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

319 termios.tcsetattr(fd, termios.TCSADRAIN, attrs)
320
321 def resource_info(self):
322 for name in self.resources:
323 method_suffix = name.replace('.', '_')
324 get_name = 'get_' + method_suffix
325 restore_name = 'restore_' + method_suffix
326 yield name, getattr(self, get_name), getattr(self, restore_name)
327
328 def __enter__(self):
329 self.saved_values = []

Callers 1

__enter__Method · 0.95

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected