MCPcopy Create free account
hub / github.com/Jack-Cherish/python-spider / decorated_function

Function decorated_function

2020/bilibili/xml2ass.py:29–34  ·  view source on GitHub ↗
(file_)

Source from the content-addressed store, hash-verified

27
28def SeekZero(function):
29 def decorated_function(file_):
30 file_.seek(0)
31 try:
32 return function(file_)
33 finally:
34 file_.seek(0)
35 return decorated_function
36
37

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected