Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
osp
tools.ethertoff
Commits
aa26a230
Commit
aa26a230
authored
Jan 28, 2020
by
alexandre
Browse files
Fix
#19
Python 3.8 import error
Python 3.8 ImportError: cannot import name 'clock' from 'time'
parent
d4fef6f9
Changes
1
Hide whitespace changes
Inline
Side-by-side
ethertoff/management/commands/index.py
View file @
aa26a230
...
@@ -5,7 +5,11 @@
...
@@ -5,7 +5,11 @@
import
os
import
os
import
json
import
json
from
urllib
import
error
from
urllib
import
error
from
time
import
clock
try
:
from
time
import
clock
except
ImportError
:
# Python >= 3.8
from
time
import
perf_counter
as
clock
# PyPi imports
# PyPi imports
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment