Skip to content

Commit 4c78a08

Browse files
committed
close some import in py27
1 parent ad41eff commit 4c78a08

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pythainlp/__init__.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# -*- coding: utf-8 -*-
22
from __future__ import absolute_import
3+
import six
4+
if six.PY3:
5+
from pythainlp.sentiment import *
6+
from pythainlp.spell import *
37
from pythainlp.romanization import *
48
from pythainlp.segment import * # เตรียมลบออก 1
59
from pythainlp.tokenize import * # แทนที่ 1
@@ -10,7 +14,5 @@
1014
from pythainlp.postaggers import * # เตรียมลบออก 2
1115
from pythainlp.tag import * # แทนที่ 2
1216
from pythainlp.collation import *
13-
#from pythainlp.spell import *
14-
from pythainlp.sentiment import *
1517
from pythainlp.test import *
1618
from pythainlp.Text import *

0 commit comments

Comments
 (0)