Skip to content
Snippets Groups Projects
Commit 556c60ec authored by Christopher Hesse's avatar Christopher Hesse
Browse files

python 3 string stuff

parent 90faa002
Branches
Tags
No related merge requests found
......@@ -17,7 +17,7 @@ a = parser.parse_args()
def main():
with open(a.input_file) as f:
with open(a.input_file, "rb") as f:
input_data = f.read()
output_data = urlopen(a.url, data=input_data).read()
......
......@@ -95,7 +95,7 @@ to_float32 = create_op(
def load(path):
with open(path) as f:
with open(path, "rb") as f:
contents = f.read()
_, ext = os.path.splitext(path.lower())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment