mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-14 01:02:59 -07:00
Remove Python 2 handling code (#2098)
* Remove Python 2 update modal * Remove Python 2 handling code * Remove backports dependencies * Remove uses of future and __future__ * Fix import * Remove requirements * Update lib folder * Clean up imports and blank lines --------- Co-authored-by: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com>
This commit is contained in:
parent
dcec1f6f5f
commit
de3393d62b
97 changed files with 7443 additions and 2917 deletions
|
@ -1,11 +1,13 @@
|
|||
from __future__ import unicode_literals
|
||||
|
||||
import inspect
|
||||
import sys
|
||||
import math
|
||||
import numbers
|
||||
|
||||
from future.utils import PY2, PY3, exec_
|
||||
|
||||
|
||||
if PY2:
|
||||
from collections import Mapping
|
||||
else:
|
||||
|
@ -103,13 +105,12 @@ if PY3:
|
|||
return '0' + builtins.oct(number)[2:]
|
||||
|
||||
raw_input = input
|
||||
|
||||
try:
|
||||
# imp was deprecated in python 3.6
|
||||
if sys.version_info >= (3, 6):
|
||||
from importlib import reload
|
||||
except ImportError:
|
||||
else:
|
||||
# for python2, python3 <= 3.4
|
||||
from imp import reload
|
||||
|
||||
unicode = str
|
||||
unichr = chr
|
||||
xrange = range
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue