瀏覽代碼

Python isnt always python2

So now this script is compatible with both python versions 2 and 3

Signed-off-by: Alexey Shvetsov <alexxy@gentoo.org>
Alexey Shvetsov 7 年之前
父節點
當前提交
12d212d1b4
共有 1 個檔案被更改,包括 2 行新增1 行删除
  1. 2
    1
      Marlin/src/HAL/HAL_LPC1768/lpc1768_flag_script.py

+ 2
- 1
Marlin/src/HAL/HAL_LPC1768/lpc1768_flag_script.py 查看文件

@@ -1,3 +1,4 @@
1
+from __future__ import print_function
1 2
 import sys
2 3
 
3 4
 #dynamic build flags for generic compile options
@@ -27,7 +28,7 @@ if __name__ == "__main__":
27 28
   for i in range(1, len(sys.argv)):
28 29
     args += " " + sys.argv[i]
29 30
 
30
-  print args
31
+  print(args)
31 32
 
32 33
 # extra script for linker options
33 34
 else:

Loading…
取消
儲存