mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-14 02:26:53 -07:00
Move common libs to libs/common
This commit is contained in:
parent
8dbb1a2451
commit
1f4bd41bcc
1612 changed files with 962 additions and 10 deletions
13
libs/common/enzyme/compat.py
Normal file
13
libs/common/enzyme/compat.py
Normal file
|
@ -0,0 +1,13 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
import sys
|
||||
|
||||
|
||||
_ver = sys.version_info
|
||||
is_py3 = _ver[0] == 3
|
||||
is_py2 = _ver[0] == 2
|
||||
|
||||
|
||||
if is_py2:
|
||||
bytes = lambda x: chr(x[0]) # @ReservedAssignment
|
||||
elif is_py3:
|
||||
bytes = bytes # @ReservedAssignment
|
Loading…
Add table
Add a link
Reference in a new issue