Commit eea601c3 by Sébastien Eustace

Fix unicode error in search command for Python 2.7

parent f50ff8d9
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
### Fixed ### Fixed
- Fixed a bug where dependencies constraints in lock were too strict. - Fixed a bug where dependencies constraints in lock were too strict.
- Fixed unicode error in `search` command for Python 2.7.
## [0.8.3] - 2018-04-16 ## [0.8.3] - 2018-04-16
......
...@@ -32,6 +32,7 @@ from poetry.semver.constraints import Constraint ...@@ -32,6 +32,7 @@ from poetry.semver.constraints import Constraint
from poetry.semver.constraints.base_constraint import BaseConstraint from poetry.semver.constraints.base_constraint import BaseConstraint
from poetry.semver.version_parser import VersionParser from poetry.semver.version_parser import VersionParser
from poetry.utils._compat import Path from poetry.utils._compat import Path
from poetry.utils._compat import to_str
from poetry.utils.helpers import temporary_directory from poetry.utils.helpers import temporary_directory
from poetry.version.markers import InvalidMarker from poetry.version.markers import InvalidMarker
...@@ -192,7 +193,7 @@ class PyPiRepository(Repository): ...@@ -192,7 +193,7 @@ class PyPiRepository(Repository):
for hit in hits: for hit in hits:
result = Package(hit['name'], hit['version'], hit['version']) result = Package(hit['name'], hit['version'], hit['version'])
result.description = hit['summary'] result.description = to_str(hit['summary'])
results.append(result) results.append(result)
return results return results
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment