[arch-general] [arch-dev-public] [PATCH 1/3] Use format strings when printing errors

cantabile cantabile.desu at gmail.com
Sun Feb 27 12:36:42 EST 2011


Le 27/02/2011 19:25, Dan McGee a écrit :
> -		print("Error: " + package + " is empty or is not a valid package")
> +		print("Error: %s is empty or is not a valid package" % package)

That method of string formatting is deprecated in python 3. ;)

http://docs.python.org/release/3.1.3/library/stdtypes.html#old-string-formatting
http://docs.python.org/release/3.1.3/library/string.html#string-formatting

-- 
cantabile

"Jayne is a girl's name." -- River


More information about the arch-general mailing list