Skip to content

Commit

Permalink
fix import error in python3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
jiesutd committed Jun 21, 2018
1 parent 1529a15 commit 4729cee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# @Author: Jie
# @Date: 2017-06-15 14:11:08
# @Last Modified by: Jie Yang, Contact: [email protected]
# @Last Modified time: 2018-06-16 16:51:28
# @Last Modified time: 2018-06-22 00:01:23

from __future__ import print_function
import time
Expand All @@ -21,7 +21,7 @@

try:
import cPickle as pickle
except ModuleNotFoundError:
except ImportError:
import pickle


Expand Down
4 changes: 2 additions & 2 deletions utils/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# @Author: Jie
# @Date: 2017-06-14 17:34:32
# @Last Modified by: Jie Yang, Contact: [email protected]
# @Last Modified time: 2018-04-26 13:58:10
# @Last Modified time: 2018-06-22 00:01:47
from __future__ import print_function
from __future__ import absolute_import
import sys
Expand All @@ -11,7 +11,7 @@

try:
import cPickle as pickle
except ModuleNotFoundError:
except ImportError:
import pickle as pickle


Expand Down

0 comments on commit 4729cee

Please sign in to comment.