Ignore:
Timestamp:
Sep 21, 2017, 3:17:50 PM (9 years ago)
Author:
Joachim Langenbach <joachim.langenbach@…>
Branches:
0.5, debian/bullseye, debian/jessie, master
Children:
f29f4d3
Parents:
3145648
git-author:
Joachim Langenbach <joachim.langenbach@…> (09/21/17 14:52:42)
git-committer:
Joachim Langenbach <joachim.langenbach@…> (09/21/17 15:17:50)
Message:
  • Changed all % string formattings into string.format
  • Changed all print "" calls into print() calls
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/python/bin/gnuboat-splashscreen

    r3145648 rb45e75d  
    3939
    4040def usage():
    41     print "Usage of gnuboat-splashscreen:"
    42     print "  gnuboat-splashscreen [-h] -i PATH_TO_IMAGE_TO_DISPLAY"
    43     print ""
    44     print "  -h --help    Print this help"
    45     print "  -i --image   Path to the image, which should be displayed"
     41    print("Usage of gnuboat-splashscreen:")
     42    print("  gnuboat-splashscreen [-h] -i PATH_TO_IMAGE_TO_DISPLAY")
     43    print("")
     44    print("  -h --help    Print this help")
     45    print("  -i --image   Path to the image, which should be displayed")
    4646    sys.exit()
    4747
    … …  
    6565
    6666    if not os.path.exists(image):
    67         print "Image %s not found" % image
    68         print ""
     67        print("Image {} not found".format(image))
    6968        usage()
    7069        sys.exit(2)
    7170
    7271    if not epdEnabled:
    73         print "Could not initialize EPD or PIL python packages"
     72        print("Could not initialize EPD or PIL python packages")
    7473        sys.exit(2)
    7574
Note: See TracChangeset for help on using the changeset viewer.