Roundup Tracker - Issues

Message8097

Author rouilj
Recipients rouilj
Date 2024-07-13.22:35:48
Message-id <1720910148.68.0.235268155417.issue2551287@roundup.psfhosted.org>
In-reply-to
pygettext.py which makes up a large part of this patch is python2. It uses:

   print >> filehandle, ...

   except Exception, var

   import imp

   dictionary.sort()

   reduce() (without importing it)

   tokenize(file.readline, tokeneater)

I got all of the above sorted.

I will attach a diff for anybody who might want to convert pygettext.py from python2 
to python3. Not sure everything is working ok, but in testing it found an error
in one of my extensions. I was using '_( template % values)' rather than '_(template) % 
values' and it flagged it. Reported that % was unexpected. Running it on itself
checked out ok.

See: changeset:   8080:d1c29284ccd9
History
Date User Action Args
2024-07-13 22:35:48rouiljsetmessageid: <1720910148.68.0.235268155417.issue2551287@roundup.psfhosted.org>
2024-07-13 22:35:48rouiljsetrecipients: + rouilj
2024-07-13 22:35:48rouiljlinkissue2551287 messages
2024-07-13 22:35:48rouiljcreate