Package: ppmtofb Severity: normal Tags: patch fbview has only one problem with python 2.5 that I've seen in testing it:
/usr/bin/fbview:286: SyntaxWarning: name 'VERBOSE' is assigned to before global declaration global VERBOSE The attached patch fixes that. Then fixing #385209 should be a simple matter of changing the python conflict to not conflict with version 2.5. -- see shy jo
--- fbview.py~ 2008-09-25 14:23:08.000000000 -0400 +++ fbview.py 2008-09-25 14:23:11.000000000 -0400 @@ -41,6 +41,7 @@ # . Added filter for pbm->pgm # Defaults - can be overridden in /etc/fbview.conf or ~/.fbview.conf +global VERBOSE VERBOSE = 1 # Set to 1 for informative messages NOCLEANUP = 0 # Set to 1 to keep the generated files around @@ -278,10 +279,8 @@ elif option[0] == '--no-center': center = 0 elif option[0] in ('-v', '--verbose'): - global VERBOSE VERBOSE = 1 elif option[0] in ('-q', '--quiet'): - global VERBOSE VERBOSE = 0 elif option[0] in ('-V', '--ppmtofb-verbose'): ppmtofb_verbose = 1
signature.asc
Description: Digital signature