Patched the LUFA build system to work around a GCC code generation bug in newer toolc...
[pub/USBasp.git] / LUFA / StudioIntegration / VSIX / generate_caches.py
index f5b6692..c51cff4 100644 (file)
@@ -11,27 +11,27 @@ sys.path.append("ProjectGenerator")
 \r
 \r
 def show_message(message):\r
 \r
 \r
 def show_message(message):\r
-       print "[Project Generator] %s" % message\r
-       sys.stdout.flush()\r
+    print("[Project Generator] %s" % message)\r
+    sys.stdout.flush()\r
 \r
 \r
 def main(lufa_root_path):\r
 \r
 \r
 def main(lufa_root_path):\r
-       try:\r
-               from asf_avrstudio5_interface import PythonFacade\r
-       except ImportError:\r
-               print "Fatal Error: The ASF project generator is missing."\r
-               return 1\r
+    try:\r
+        from asf_avrstudio5_interface import PythonFacade\r
+    except ImportError:\r
+        print("Fatal Error: The ASF project generator is missing.")\r
+        return 1\r
 \r
 \r
-       p = PythonFacade(lufa_root_path)\r
+    p = PythonFacade(lufa_root_path)\r
 \r
 \r
-       show_message("Checking database sanity...")\r
-       p.check_extension_database_sanity(lufa_root_path)\r
+    show_message("Checking database sanity...")\r
+    p.check_extension_database_sanity(lufa_root_path)\r
 \r
 \r
-       show_message("Building cache files...")\r
-       p.generate_extension_cache_files(lufa_root_path)\r
+    show_message("Building cache files...")\r
+    p.generate_extension_cache_files(lufa_root_path)\r
 \r
 \r
-       show_message("Cache files created.")\r
-       return 0\r
+    show_message("Cache files created.")\r
+    return 0\r
 \r
 \r
 if __name__ == "__main__":\r
 \r
 \r
 if __name__ == "__main__":\r