Browse Source

Merge "Make fetch_wheels.py python3 compatible"

Zuul 4 months ago
parent
commit
6c7bddb8b2
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      scripts/fetch_wheels.py

+ 2
- 2
scripts/fetch_wheels.py View File

@@ -65,7 +65,7 @@ def protocol_detection(registry, protocol='http'):
65 65
         elif index < len(PROTOCOLS) - 1:
66 66
             return protocol_detection(registry, PROTOCOLS[index + 1])
67 67
         else:
68
-            raise Exception, "Cannot detect protocol for registry: {} due to error: {}".format(registry,err)
68
+            raise Exception("Cannot detect protocol for registry: {} due to error: {}".format(registry,err))
69 69
     except:
70 70
         raise
71 71
     else:
@@ -96,7 +96,7 @@ def main():
96 96
     if 'WHEELS' in os.environ:
97 97
         wheels = os.environ['WHEELS']
98 98
     else:
99
-        with open('/opt/loci/wheels', 'ro') as f:
99
+        with open('/opt/loci/wheels', 'r') as f:
100 100
             wheels = f.read()
101 101
 
102 102
     if wheels.startswith('/'):

Loading…
Cancel
Save