Skip to content

Commit

Permalink
fix TypeError: Item in ``from list'' not a string
Browse files Browse the repository at this point in the history
when ``from pypinyin import *``, raise that error
  • Loading branch information
mozillazg committed Jun 16, 2015
1 parent d741588 commit b1c8840
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 0 additions & 2 deletions pypinyin/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@

"""汉语拼音转换工具."""

from __future__ import unicode_literals

__title__ = 'pypinyin'
__version__ = '0.6.0'
__author__ = 'mozillazg, 闲耘'
Expand Down
11 changes: 11 additions & 0 deletions tests/test_others.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import unicode_literals


def test_import_all():
from pypinyin import * # noqa
pinyin('啦啦啦')
pinyin('啦啦啦', TONE2)
lazy_pinyin('啦啦啦')
slug('啦啦啦')

0 comments on commit b1c8840

Please sign in to comment.