#12655 closed (fixed)
diffsettings command prints instead of returns
| Reported by: | Joe Vasquez | Owned by: | Joe Vasquez |
|---|---|---|---|
| Component: | Core (Management commands) | Version: | 1.1 |
| Severity: | Keywords: | ||
| Cc: | Triage Stage: | Ready for checkin | |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
line number 32 of source:trunk/django/core/management/commands/diffsettings.py#9961 has:
print '\n'.join(output)
this makes using this command in other (custom) commands difficult. reccommend using:
return '\n'.join(output)
Attachments (1)
Change History (6)
by , 16 years ago
| Attachment: | return_instead_o_print.diff added |
|---|
comment:1 by , 16 years ago
| Status: | new → assigned |
|---|
comment:2 by , 16 years ago
| Component: | Core framework → django-admin.py |
|---|---|
| Triage Stage: | Unreviewed → Ready for checkin |
comment:3 by , 16 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
comment:4 by , 16 years ago
Note:
See TracTickets
for help on using tickets.
replacing the "print" in diffsettings command to "return"