0001-version_generator.py-make-it-python3-compliant.patch 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. From e04f5c20fc1536f8e6d4faf32f2f4657d441f7c8 Mon Sep 17 00:00:00 2001
  2. From: Samuel Martin <s.martin49@gmail.com>
  3. Date: Mon, 14 Apr 2014 17:54:37 +0200
  4. Subject: [PATCH] version_generator.py: make it python3 compliant
  5. Signed-off-by: Samuel Martin <s.martin49@gmail.com>
  6. ---
  7. openpgm/pgm/version_generator.py | 6 ++++--
  8. 1 file changed, 4 insertions(+), 2 deletions(-)
  9. diff --git a/openpgm/pgm/version_generator.py b/openpgm/pgm/version_generator.py
  10. index 2265480..c31376f 100755
  11. --- a/openpgm/pgm/version_generator.py
  12. +++ b/openpgm/pgm/version_generator.py
  13. @@ -1,5 +1,7 @@
  14. #!/usr/bin/python
  15. +from __future__ import print_function
  16. +
  17. import os
  18. import platform
  19. import time
  20. @@ -8,7 +10,7 @@ build_date = time.strftime ("%Y-%m-%d")
  21. build_time = time.strftime ("%H:%M:%S")
  22. build_rev = filter (str.isdigit, "$Revision: 1369 $")
  23. -print """
  24. +print("""
  25. /* vim:ts=8:sts=8:sw=4:noai:noexpandtab
  26. *
  27. * OpenPGM version.
  28. @@ -47,6 +49,6 @@ const char* pgm_build_revision = "%s";
  29. /* eof */
  30. -"""%(build_date, build_time, platform.system(), platform.machine(), build_rev)
  31. +"""%(build_date, build_time, platform.system(), platform.machine(), build_rev))
  32. # end of file
  33. --
  34. 1.9.2