Skip to content

Commit

Permalink
Use unicode in yaml output
Browse files Browse the repository at this point in the history
Fixes #189 (for yaml output)
  • Loading branch information
kamaradclimber committed Apr 3, 2015
1 parent b321950 commit 07792f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guessit/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def guess_file(filename, info='filename', options=None, **kwargs):
for k, v in guess.items():
if isinstance(v, list) and len(v) == 1:
guess[k] = v[0]
ystr = yaml.safe_dump({filename: dict(guess)}, default_flow_style=False)
ystr = yaml.safe_dump({filename: dict(guess)}, default_flow_style=False, allow_unicode=True)
i = 0
for yline in ystr.splitlines():
if i == 0:
Expand Down

0 comments on commit 07792f2

Please sign in to comment.