0002-Use-print-as-function-call-for-Python3-compatibility.patch 1009 B

1234567891011121314151617181920212223242526272829
  1. From 8c02c2cbc6f07ddaef23e6bf2f6b9a269ed85ff4 Mon Sep 17 00:00:00 2001
  2. From: Titouan Christophe <titouan.christophe@railnova.eu>
  3. Date: Tue, 4 Feb 2020 11:59:07 +0100
  4. Subject: [PATCH] Use print as function call for Python3 compatibility
  5. A similar patch has already been applied upstream, in commit
  6. ada15125a1cbb3b1718d6eef78512a36ed327fcc, which will therefore be
  7. available in the next norm release
  8. Signed-off-by: Titouan Christophe <titouan.christophe@railnova.eu>
  9. ---
  10. wscript | 2 +-
  11. 1 file changed, 1 insertion(+), 1 deletion(-)
  12. diff --git a/wscript b/wscript
  13. index 8428899..0fdae96 100644
  14. --- a/wscript
  15. +++ b/wscript
  16. @@ -32,7 +32,7 @@ for line in vfile.readlines():
  17. if "#define" == line[0] and "VERSION" == line[1]:
  18. VERSION = line[2].strip('"')
  19. if VERSION is None:
  20. - print "Warning: NORM VERSION not found!?"
  21. + print("Warning: NORM VERSION not found!?")
  22. # So you don't need to do ./waf configure if you are just using the defaults
  23. waflib.Configure.autoconfig = True
  24. --
  25. 2.24.1