0002-Use-print-as-a-function-for-Py3-compatibility.patch 1003 B

12345678910111213141516171819202122232425262728293031
  1. Use print as a function in SConstruct build file for Py3 compatibility.
  2. This allow to run SCons on Python 3
  3. [Upstream status: https://github.com/codehero/benejson/pull/12]
  4. Signed-off-by: Titouan Christophe <titouan.christophe@railnova.eu>
  5. ---
  6. benejson/SConscript | 4 ++--
  7. 1 file changed, 2 insertions(+), 2 deletions(-)
  8. diff --git a/benejson/SConscript b/benejson/SConscript
  9. index b7c5d10..80b4875 100644
  10. --- a/benejson/SConscript
  11. +++ b/benejson/SConscript
  12. @@ -9,11 +9,11 @@ lib_env = lib_env.Clone()
  13. conf = Configure(lib_env)
  14. if not conf.CheckFunc("stpcpy"):
  15. - print "Did not find stpcpy(), using bnj local version"
  16. + print("Did not find stpcpy(), using bnj local version")
  17. conf.env.Append(CPPDEFINES = ["-Dstpcpy=bnj_local_stpcpy"])
  18. if not conf.CheckFunc("stpncpy"):
  19. - print "Did not find stpncpy(), using bnj local version"
  20. + print("Did not find stpncpy(), using bnj local version")
  21. conf.env.Append(CPPDEFINES = ["-Dstpncpy=bnj_local_stpncpy"])
  22. lib_env = conf.Finish()
  23. --
  24. 2.21.0