Skip to content

Commit 9cfa861

Browse files
SeanLee97--replace-all
authored andcommitted
fixed unicode in python3
bumpversion 0.2.2->0.2.3
1 parent f23843f commit 9cfa861

File tree

5 files changed

+8
-7
lines changed

5 files changed

+8
-7
lines changed

.bumpversion.cfg

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
[bumpversion]
22
files = setup.py xmnlp/__init__.py
3-
current_version = 0.2.2
3+
current_version = 0.2.3
44
commit = True
55
tag = True
6-

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<p align='center'>/ xmnlp /</p>
22
<p align='center'>小明 NLP — 轻量级中文自然语言处理工具</p>
33
<p align='center'> A Lightweight Chinese Natural Language Processing Toolkit</p>
4-
<p align='center'>v 0.2.2</p>
4+
<p align='center'>v 0.2.3</p>
55

6-
<p align='center'><strong>R.I.P</strong> 0.2.2版是 xmnlp 最后一个兼容 Python 2.7 的版本</div>
6+
<p align='center'><strong>R.I.P</strong> 0.2.3版是 xmnlp 最后一个兼容 Python 2.7 的版本</div>
77

8-
[![pypi](https://img.shields.io/badge/pypi-v0.2.2-blue.svg)](https://pypi.org/project/xmnlp/)
8+
[![pypi](https://img.shields.io/badge/pypi-v0.2.3-blue.svg)](https://pypi.org/project/xmnlp/)
99
![python version](https://img.shields.io/badge/python-2%2C3-orange.svg)
1010
![support os](https://img.shields.io/badge/os-linux%2C%20win%2C%20mac-yellow.svg)
1111
[![GitHub license](https://img.shields.io/github/license/SeanLee97/xmnlp.svg)](https://github.com/SeanLee97/xmnlp/blob/master/LICENSE)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
sys.setdefaultencoding('utf8')
1515

1616

17-
__version__ = '0.2.2'
17+
__version__ = '0.2.3'
1818

1919
LONGDESC = """
2020
============

xmnlp/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
sys.setdefaultencoding('utf8')
2828

2929
__author__ = 'sean lee'
30-
__version__ = '0.2.2'
30+
__version__ = '0.2.3'
3131

3232

3333
def load_stopword(fpath):

xmnlp/checker/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
if sys.version_info[0] == 2:
1717
reload(sys)
1818
sys.setdefaultencoding('utf8')
19+
elif sys.version_info[0] == 3:
20+
unicode = str
1921

2022
# checker model
2123
model = None

0 commit comments

Comments
 (0)