1
0
mirror of https://github.com/chubin/cheat.sh.git synced 2026-06-20 13:16:44 +02:00

Remove some python2 code

This commit is contained in:
Igor Chubin
2021-01-31 18:35:15 +01:00
parent 16eaa7814a
commit bda370afaf
2 changed files with 1 additions and 11 deletions
-7
View File
@@ -14,13 +14,6 @@ Configuration parameters:
path.log.queries
"""
from __future__ import print_function
import sys
if sys.version_info[0] < 3:
reload(sys)
sys.setdefaultencoding('utf8')
import sys
import logging
import os
+1 -4
View File
@@ -6,10 +6,7 @@ from __future__ import print_function
import sys
import textwrap
try:
import urlparse
except ModuleNotFoundError:
import urllib.parse as urlparse
import urllib.parse as urlparse
import config
config.CONFIG["cache.type"] = "none"