yichen0831 / opencc-python

OpenCC made with Python
Apache License 2.0
536 stars 67 forks source link

Add support for Python 2.6 and 2.7 #16

Closed Hopkins1 closed 5 years ago

Hopkins1 commented 5 years ago

During command line operation, remove the following error when using Python 2.6 and 2.7: "TypeError: 'encoding' is an invalid keyword argument for this function"

Use the 'io' module common to both Python versions to remove the 2.6 TypeError. Python 3 operation is unchanged.

Also made a slight clarification to the command line usage text.