Opened 10 years ago
Closed 9 years ago
#12047 closed enhancement (fixed)
Replace print statement with print function
Reported by: | Ryan J Ollos | Owned by: | Ryan J Ollos |
---|---|---|---|
Priority: | normal | Milestone: | 1.1.6 |
Component: | general | Version: | |
Severity: | normal | Keywords: | python3 |
Cc: | Branch: | ||
Release Notes: |
Replaced all |
||
API Changes: | |||
Internal Changes: |
Description
The replacement of print
statement with the print
function was done in #11600. However, there are a few instances of the print
statement that remain in the codebase:
- tags/trac-1.1.4/contrib/cgi-bin/trac.cgi@:27,30-36#L18
- tags/trac-1.1.4/contrib/cgi-bin/trac.fcgi@:24-30,35#L18
- tags/trac-1.1.4/trac/perm.py@:677,684#L665
- tags/trac-1.1.4/trac/admin/console.py@:113,332,348,398#L96
- tags/trac-1.1.4/contrib/l10n_diff_index.py@:95#L87
- tags/trac-1.1.4/doc/utils/runepydoc.py@:22,36#L17
- tags/trac-1.1.4/trac/web/auth.py@:328,334,338,396,402#L317
- tags/trac-1.1.4/Makefile@:305,563#L299
- tags/trac-1.1.4/contrib/trac-pre-commit-hook@:39,52,66#L37
- tags/trac-1.1.4/trac/admin/templates/deploy_trac.cgi@:39,42-48#L35
- tags/trac-1.1.4/trac/admin/templates/deploy_trac.fcgi@:36-42,47#L35
The regex \bprint\b[^(]
was used to locate above instances.
Attachments (1)
Change History (9)
comment:1 by , 10 years ago
Milestone: | next-major-releases → 1.1.5 |
---|---|
Owner: | set to |
Status: | new → assigned |
comment:2 by , 10 years ago
Milestone: | 1.1.5 → 1.1.6 |
---|
comment:3 by , 9 years ago
comment:4 by , 9 years ago
Release Notes: | modified (diff) |
---|
comment:5 by , 9 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Committed to trunk in [14139].
by , 9 years ago
Attachment: | 12047-docs.diff added |
---|
comment:6 by , 9 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
I added a patch with some doc updates for this. My editor also removed trailing whitespace in the modified files; hope that's okay.
comment:7 by , 9 years ago
Documentation updates should be made directly to the t.e.o wiki. We sync the changes from the wiki to the codebase on every release. I didn't bother with the changes to the tests branches/1.0-stable/trac/mimeview/tests/pygments.py and branches/1.0-stable/trac/wiki/tests/wiki-tests.txt since those are just code samples to be highlighted/annotated and the actual content is irrelevant.
comment:8 by , 9 years ago
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
Okay, thanks for the explanation.
Proposed changes in log:rjollos.git:t12047_print_function.