X-Git-Url: http://git.tremily.us/?p=update-copyright.git;a=blobdiff_plain;f=update_copyright%2Futils.py;fp=update_copyright%2Futils.py;h=117235149b469d0cb992e6c64dad59d5ee402e19;hp=f20c301fa60ad6eaada85e6353cf1871cd6ea6c6;hb=e873cab4167ee94548cc57c44481ec8246c4a91d;hpb=621ed3ab31f6cea366b91ef25821f101bf44d4c7 diff --git a/update_copyright/utils.py b/update_copyright/utils.py index f20c301..1172351 100644 --- a/update_copyright/utils.py +++ b/update_copyright/utils.py @@ -128,11 +128,11 @@ def copyright_string(original_year, final_year, authors, text, info={}, for i,paragraph in enumerate(text): try: text[i] = paragraph % info - except ValueError, e: + except ValueError as e: _LOG.error( "{}: can't format {} with {}".format(e, paragraph, info)) raise - except TypeError, e: + except TypeError as e: _LOG.error( ('{}: copright text must be a list of paragraph strings, ' 'not {}').format(e, repr(text)))