Skip to content
Snippets Groups Projects
Commit 7675bd9c authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

.

parent aa4abe27
No related branches found
No related tags found
No related merge requests found
Pipeline #2375 failed with stage
in 13 seconds
...@@ -3,7 +3,7 @@ from __future__ import print_function ...@@ -3,7 +3,7 @@ from __future__ import print_function
import json, sys import json, sys
import os.path import os.path
def readin(path, func=lambda x: x, orelse=None): def readin(path, func=bytes, orelse=None):
if os.path.exists(path): if os.path.exists(path):
with open(path, 'rb') as fin: with open(path, 'rb') as fin:
return func(fin.read()) return func(fin.read())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment