Commit aa26a230 authored by alexandre's avatar alexandre
Browse files

Fix #19 Python 3.8 import error

Python 3.8 ImportError: cannot import name 'clock' from 'time'
parent d4fef6f9
...@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment