util: Port util to python3
[gem5.git] / util / minorview / colours.py
index bfe0c199f649c363dcfd177b64770226a35d9cb2..d0887ec0bf8af4349e78321ca44b93bb711c6509 100644 (file)
@@ -57,8 +57,8 @@ def name_to_colour(name):
         ret = unknownColour
     return ret
 
-number_colour_code = map(name_to_colour, ['black', 'brown', 'red', 'orange',
-    'yellow', 'green', 'blue', 'violet', 'grey', 'white'])
+number_colour_code = list(map(name_to_colour, ['black', 'brown', 'red',
+    'orange', 'yellow', 'green', 'blue', 'violet', 'grey', 'white']))
 
 def number_to_colour(num):
     """Convert the last decimal digit of an integer into a resistor