Skip to content

Commit

Permalink
Revert "Decoding intput files as utf8 after reading (#195)" (#196)
Browse files Browse the repository at this point in the history
This reverts commit 4a9a1c8.
  • Loading branch information
karandeep-johar committed Oct 27, 2020
1 parent 4a9a1c8 commit ff84331
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stone/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ def main():
sys.exit(1)
else:
with open(spec_path) as f:
specs.append((spec_path, f.read().decode('utf8')))
specs.append((spec_path, f.read()))
if read_from_stdin and specs:
print("error: Do not specify stdin and specification files "
"simultaneously.", file=sys.stderr)
Expand Down Expand Up @@ -241,7 +241,7 @@ def main():

if args.route_whitelist_filter:
with open(args.route_whitelist_filter) as f:
route_whitelist_filter = json.loads(f.read().decode('utf8'))
route_whitelist_filter = json.loads(f.read())
else:
route_whitelist_filter = None

Expand Down

0 comments on commit ff84331

Please sign in to comment.