]> git.ipfire.org Git - oddments/fireinfo.git/blobdiff - src/fireinfo/cpu.py
Run 2to3
[oddments/fireinfo.git] / src / fireinfo / cpu.py
index dc76caf9f1f10bcfea551e6a5cb3955ed2050289..e433a04f3dd90c59c74c4c3ac3af03186dc9b746 100644 (file)
@@ -21,7 +21,7 @@
 
 import os
 
-import system
+from . import system
 
 PROC_CPUINFO = "/proc/cpuinfo"
 
@@ -188,12 +188,12 @@ class CPU(object):
 if __name__ == "__main__":
        c = CPU()
 
-       print "Vendor:", c.vendor
-       print "Model:", c.model
-       print "Stepping:", c.stepping
-       print "Flags:", c.flags
-       print "Bogomips:", c.bogomips
-       print "Speed:", c.speed
-       print "Family:", c.family
-       print "Count:", c.count
-       print "Model string:", c.model_string
+       print("Vendor:", c.vendor)
+       print("Model:", c.model)
+       print("Stepping:", c.stepping)
+       print("Flags:", c.flags)
+       print("Bogomips:", c.bogomips)
+       print("Speed:", c.speed)
+       print("Family:", c.family)
+       print("Count:", c.count)
+       print("Model string:", c.model_string)