File: six.patch

package info (click to toggle)
python-openshift 0.13.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 360 kB
  • sloc: python: 1,821; makefile: 18; sh: 14
file content (31 lines) | stat: -rw-r--r-- 997 bytes parent folder | download
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=[