Guest User

openpgm: python2/python3 compliance

a guest
Apr 11th, 2014
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.54 KB | None | 0 0
  1. --- a/openpgm/pgm/version_generator.py  2014-04-11 09:00:35.021288054 +0200
  2. +++ b/openpgm/pgm/version_generator.py  2014-04-11 09:01:11.789661467 +0200
  3. @@ -1,5 +1,7 @@
  4.  #!/usr/bin/python
  5.  
  6. +from __future__ import print_function
  7. +
  8.  import os
  9.  import platform
  10.  import time
  11. @@ -8,9 +10,9 @@ build_date = time.strftime ("%Y-%m-%d")
  12.  build_time = time.strftime ("%H:%M:%S")
  13.  build_rev = filter (str.isdigit, "$Revision: 1369 $")
  14.  
  15. -print """
  16. +print ("""
  17.  /* vim:ts=8:sts=8:sw=4:noai:noexpandtab
  18. - *
  19. + *
  20.   * OpenPGM version.
  21.   *
  22.   * Copyright (c) 2006-2011 Miru Limited.
  23. @@ -19,12 +21,12 @@ print """
  24.   * modify it under the terms of the GNU Lesser General Public
  25.   * License as published by the Free Software Foundation; either
  26.   * version 2.1 of the License, or (at your option) any later version.
  27. - *
  28. + *
  29.   * This library is distributed in the hope that it will be useful,
  30.   * but WITHOUT ANY WARRANTY; without even the implied warranty of
  31.   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  32.   * Lesser General Public License for more details.
  33. - *
  34. + *
  35.   * You should have received a copy of the GNU Lesser General Public
  36.   * License along with this library; if not, write to the Free Software
  37.   * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  38. @@ -47,6 +49,6 @@ const char* pgm_build_revision = "%s";
  39.  
  40.  
  41.  /* eof */
  42. -"""%(build_date, build_time, platform.system(), platform.machine(), build_rev)
  43. +"""%(build_date, build_time, platform.system(), platform.machine(), build_rev))
  44.  
  45.  # end of file
Advertisement
Add Comment
Please, Sign In to add comment