Skip to content

Commit

Permalink
quick fix (#168)
Browse files Browse the repository at this point in the history
  • Loading branch information
al-niessner authored Jul 28, 2022
1 parent 94c7aec commit 5e2a477
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Python/dawgie/pl/dag.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ def graph (dot:pydot.Dot, roots:set, name:str):

fn = os.path.join (idir, name)
dot.write_svg (fn)
with open (fn, 'rb', encoding="utf-8") as f: data = f.read()
with open (fn, 'rb') as f: data = f.read()
return data

@staticmethod
Expand Down
4 changes: 2 additions & 2 deletions Python/dawgie/security.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,9 +266,9 @@ def pgp(): return _pgp
name_email=args.user_email,
name_real=args.user_name))
bn = os.path.join (args.output_dir, 'dawgie.%s.%s')
with open (bn % (args.user_name, 'pub'), 'wt', encoding="utf-8") as gf: \
with open (bn % (args.user_name, 'pub'), 'tw', encoding="utf-8") as gf: \
gf.write (pgp.export_keys (k))
with open (bn % (args.user_name, 'sec'), 'wt', encoding="utf-8") as gf: \
with open (bn % (args.user_name, 'sec'), 'tw', encoding="utf-8") as gf: \
gf.write (pgp.export_keys (k, True))
os.chmod (bn % (args.user_name, 'pub'), 0o600)
os.chmod (bn % (args.user_name, 'sec'), 0o600)
Expand Down

0 comments on commit 5e2a477

Please sign in to comment.