(function)
| 26 | gettext.install('danmaku2ass', os.path.join(os.path.dirname(os.path.abspath(os.path.realpath(sys.argv[0] or 'locale'))), 'locale')) |
| 27 | |
| 28 | def 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 | |
| 38 | def EOFAsNone(function): |
nothing calls this directly
no outgoing calls
no test coverage detected