Skip to content

Commit 940bd22

Browse files
committed
always try decoding input to unicode, fix #38
1 parent c93b95f commit 940bd22

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

README.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,7 @@ Installation
8989

9090
``pip install nameparser``
9191

92-
I usually push changes to `PyPi <https://pypi.python.org/pypi/nameparser>`_
93-
pretty quickly. If you want to try out the latest code from GitHub you can
92+
If you want to try out the latest code from GitHub you can
9493
install with pip using the command below.
9594

9695
``pip install -e git+git://github.com/derek73/python-nameparser.git#egg=nameparser``

nameparser/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION = (0, 3, 9)
1+
VERSION = (0, 3, 10)
22
__version__ = '.'.join(map(str, VERSION))
33
__author__ = "Derek Gulbranson"
44
__author_email__ = '[email protected]'

nameparser/parser.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,8 +390,10 @@ def parse_full_name(self):
390390
self.nickname_list = []
391391
self.unparsable = True
392392

393-
if not isinstance(self._full_name, text_types):
393+
try:
394394
self._full_name = u(self._full_name, self.ENCODING)
395+
except TypeError:
396+
pass
395397

396398
self.pre_process()
397399

0 commit comments

Comments
 (0)