mirror of
https://github.com/odriverobotics/ODrive.git
synced 2026-09-23 00:59:54 +08:00
Merge branch 'py_vercheck_bug'
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
## [0.3.4] - 2018-02-13
|
||||
|
||||
### Fixed
|
||||
* Broken way to check for python 2. Python 2 not supported yet.
|
||||
|
||||
## [0.3.3] - 2018-02-12
|
||||
|
||||
### Added
|
||||
|
||||
@@ -6,14 +6,14 @@ import sys
|
||||
|
||||
import abc
|
||||
|
||||
if sys.version_info >= (3, 4):
|
||||
ABC = abc.ABC
|
||||
else:
|
||||
ABC = abc.ABCMeta('ABC', (), {})
|
||||
# if sys.version_info >= (3, 4):
|
||||
ABC = abc.ABC
|
||||
# else:
|
||||
# ABC = abc.ABCMeta('ABC', (), {})
|
||||
|
||||
if sys.version_info <= (3, 3):
|
||||
from monotonic import monotonic
|
||||
time.monotonic = monotonic
|
||||
# if sys.version_info <= (3, 3):
|
||||
# from monotonic import monotonic
|
||||
# time.monotonic = monotonic
|
||||
|
||||
SYNC_BYTE = 0xAA
|
||||
CRC8_INIT = 0x42
|
||||
|
||||
Reference in New Issue
Block a user