mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-23 00:57:44 +01:00
remove six library dependency
This commit is contained in:
parent
8ad7dada10
commit
43fe8be072
@ -3,14 +3,14 @@
|
|||||||
from __future__ import print_function, unicode_literals # We require Python 2.6 or later
|
from __future__ import print_function, unicode_literals # We require Python 2.6 or later
|
||||||
from string import Template
|
from string import Template
|
||||||
import os
|
import os
|
||||||
import six
|
import sys
|
||||||
from io import open
|
from io import open
|
||||||
|
|
||||||
if six.PY2:
|
if sys.version_info[:3][0] == 2:
|
||||||
import ConfigParser as ConfigParser
|
import ConfigParser as ConfigParser
|
||||||
import StringIO as StringIO
|
import StringIO as StringIO
|
||||||
|
|
||||||
if six.PY3:
|
if sys.version_info[:3][0] == 3:
|
||||||
import configparser as ConfigParser
|
import configparser as ConfigParser
|
||||||
import io as StringIO
|
import io as StringIO
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user