MCPcopy Create free account
hub / github.com/EasyIME/PIME / make_handler

Method make_handler

python/python3/tornado/test/log_test.py:68–73  ·  view source on GitHub ↗
(self, filename)

Source from the content-addressed store, hash-verified

66 os.rmdir(self.tempdir)
67
68 def make_handler(self, filename):
69 # Base case: default setup without explicit encoding.
70 # In python 2, supports arbitrary byte strings and unicode objects
71 # that contain only ascii. In python 3, supports ascii-only unicode
72 # strings (but byte strings will be repr'd automatically).
73 return logging.FileHandler(filename)
74
75 def get_output(self):
76 with open(self.filename, "rb") as f:

Callers 1

setUpMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected