1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
--- a/openshift/dynamic/discovery.py
+++ b/openshift/dynamic/discovery.py
@@ -1,5 +1,4 @@
import os
-import six
import hashlib
import tempfile
from collections import defaultdict
@@ -46,10 +45,7 @@
else:
cache_id = self.client.configuration.host
- if six.PY3:
- return cache_id.encode('utf-8')
-
- return cache_id
+ return cache_id.encode('utf-8')
def __get_user(self):
if hasattr(os, 'getlogin'):
--- a/setup.py
+++ b/setup.py
@@ -46,7 +46,7 @@
license="Apache License Version 2.0",
url="https://github.com/openshift/openshift-restclient-python",
keywords=["Swagger", "OpenAPI", "Kubernetes", "OpenShift"],
- install_requires=['kubernetes >= 12.0', 'python-string-utils', 'six'],
+ install_requires=['kubernetes >= 12.0', 'python-string-utils'],
packages=find_packages(include='openshift.*'),
long_description='Python client for OpenShift http://openshift.redhat.com/',
classifiers=[
|