Repository navigation
Test issue #47020
Description
Activity
This is a very long line. I am wondering how it will be wrapped. What
will happen to this exceedingly long line? Will it be wrapped? Will it?
Really? What will happen?Here's an example:
def fact(n): if n > 1: return n * fact(n-1) else: assert n in (0, 1) return 1
What do you think of that?
Testing authorage
Does this still work?
More testing.
Testing 1..2..3
Reviewers: ,
Description:
"This is a very long line. I am wondering how it will be wrapped. What
will happen to this exceedingly long line? Will it be wrapped? Will it?
Really? What will happen?Here's an example:
def fact(n): if n > 1: return n * fact(n-1) else: assert n in (0, 1) return 1
What do you think of that?"
Please review this at http://codereview.appspot.com/24075
Affected files:
M static/upload.pyIndex: static/upload.py
===================================================================
--- static/upload.py (revision 402)
+++ static/upload.py (working copy)
@@ -61,7 +61,30 @@
# Max size of patch or base file.
MAX_UPLOAD_SIZE = 900 * 1024+#python static/upload.py -R 2771 -F msg66272 --send_mail
+fields = {'issue':'title', 'msg':'content', 'file':'description', }
+def fetch_item(nodeid, kind='issue', tracker='http://bugs.python.org'):
+ query_tpl = [('@action', 'export_csv'), ('@filter', 'id'),
+ ('id', nodeid), ('@columns', fields[kind])]
+ item_url = '/%s?%s' % (kind, urllib.urlencode(query_tpl))
+ content = urllib.urlopen(tracker + item_url).read().split('\r\n')
+ if content[0] == 'title':
+ return '[issue%s] %s' % (nodeid, content[1].strip())
+ elif content[0] == 'content' or content[0] == 'description':
+ return content[1].strip()+def fetch(nodeid, debug=True):
+ kind = 'issue'
+ if nodeid.startswith('msg'):
+ kind = 'msg'
+ elif nodeid.startswith('file'):
+ kind = 'file'
+ nodeid = nodeid.replace(kind, '')
+ result = fetch_item(int(nodeid), kind)
+ if debug:
+ logging.info('Fetched "%s: %s"' % (kind, result))
+ return result
+
def GetEmail(prompt):
"""Prompts the user for their email address and returns it.@@ -453,6 +476,14 @@ group.add_option("--send_mail", action="store_true", dest="send_mail", default=False, help="Send notification email to reviewers.") +# Link options +group = parser.add_option_group("Link options") +group.add_option("-R", "--roundup", action="store", dest="roundup", + metavar="ROUNDUP", default=None, + help="Python tracker issue number to link with.") +group.add_option("-F", "--fetch_descr", action="store", dest="fetch_descr", + metavar="FETCHDESCR", default=None, + help="Tracker file or message to fetch description from.") def GetRpcServer(options): @@ -1291,7 +1322,10 @@ prompt = "Message describing this patch set: " else: prompt = "New issue subject: " - message = options.message or raw_input(prompt).strip() + if options.roundup: + message = fetch(options.roundup) + else: + message = options.message or raw_input(prompt).strip() if not message: ErrorExit("A non-empty message is required") rpc_server = GetRpcServer(options) @@ -1307,11 +1341,16 @@ if "@" in reviewer and not reviewer.split("@")[1].count(".") == 1: ErrorExit("Invalid email address: %s" % reviewer) form_fields.append(("reviewers", options.reviewers)) + tracker_email = 'report@bugs.python.org,' if options.cc: for cc in options.cc.split(','): if "@" in cc and not cc.split("@")[1].count(".") == 1: ErrorExit("Invalid email address: %s" % cc) - form_fields.append(("cc", options.cc)) + if options.roundup: + cc = tracker_email + options.cc + form_fields.append(("cc", cc)) + elif options.roundup: + form_fields.append(("cc", tracker_email[:-1])) description = options.description if options.description_file: if options.description: @@ -1319,6 +1358,9 @@ file = open(options.description_file, 'r') description = file.read() file.close() + elif options.fetch_descr: + # XXX Add error handling as above + description = fetch(options.fetch_descr) if description: form_fields.append(("description", description)) # Send a hash of all the base file so the server can determine if a copy
Reviewers: ,
Description:
From http://bugs.python.org/issue2771"This is a very long line. I am wondering how it will be wrapped. What
will happen to this exceedingly long line? Will it be wrapped? Will it?
Really? What will happen?Here's an example:
def fact(n): if n > 1: return n * fact(n-1) else: assert n in (0, 1) return 1
What do you think of that?"
Description fetched from: http://bugs.python.org/msg66272
Please review this at http://codereview.appspot.com/25076
Affected files:
M static/upload.pyReviewers: ,
Description:
From http://bugs.python.org/issue2771Testing 1..2..3
Description fetched from: http://bugs.python.org/msg82496
Please review this at http://codereview.appspot.com/22062
Affected files:
M static/upload.pyTesting how email handles quotes.
[mailgw]
# Keep email citations when accepting messages. # Setting this to "no" strips out "quoted" text from the message. # Signatures are also stripped. # Allowed values: yes, no # Default: yes keep_quoted_text = yes # Preserve the email body as is - that is, # keep the citations _and_ signatures. # Allowed values: yes, no # Default: no leave_body_unchanged = no
Dumb whole message quote.
On Tue, Apr 7, 2009 at 11:51 AM, Daniel Diniz <report@bugs.python.org> wrote:
Daniel Diniz <ajaksu@gmail.com> added the comment:
Testing how email handles quotes.
[mailgw]
Keep email citations when accepting messages.
Setting this to "no" strips out "quoted" text from the message.
Signatures are also stripped.
Allowed values: yes, no
Default: yes
keep_quoted_text = yes
Preserve the email body as is - that is,
keep the citations _and_ signatures.
Allowed values: yes, no
Default: no
leave_body_unchanged = no
----------
Python tracker <report@bugs.python.org>
<http://bugs.python.org/issue2771\>
Nested quotes.
On Tue, Apr 7, 2009 at 11:53 AM, Daniel Diniz <report@bugs.python.org> wrote:
Daniel Diniz <ajaksu@gmail.com> added the comment:
Dumb whole message quote.
On Tue, Apr 7, 2009 at 11:51 AM, Daniel Diniz <report@bugs.python.org> wrote:
>
> Daniel Diniz <ajaksu@gmail.com> added the comment:
>
> Testing how email handles quotes.
>
> [mailgw]
>
> # Keep email citations when accepting messages.
> # Setting this to "no" strips out "quoted" text from the message.
> # Signatures are also stripped.
> # Allowed values: yes, no
> # Default: yes
> keep_quoted_text = yes
>
> # Preserve the email body as is - that is,
> # keep the citations _and_ signatures.
> # Allowed values: yes, no
> # Default: no
> leave_body_unchanged = no
>
> ----------
>
> _______________________________________
> Python tracker <report@bugs.python.org>
> <http://bugs.python.org/issue2771\>
> _______________________________________
>----------
Python tracker <report@bugs.python.org>
<http://bugs.python.org/issue2771\>
>> Testing how email handles quotes.
>>
>> [mailgw]
>>
>> # Keep email citations when accepting messages.
>> # Setting this to "no" strips out "quoted" text from the message.
>> # Signatures are also stripped.
>> # Allowed values: yes, no
>> # Default: yes
>> keep_quoted_text = yes
>>
>> # Preserve the email body as is - that is,
>> # keep the citations _and_ signatures.
>> # Allowed values: yes, no
>> # Default: no
>> leave_body_unchanged = no
>>Bottom posting, less hints about quotes.
209 remaining items
Load more actionsTest IRC
- added3.11only security fixesonly security fixesand removed3.9 (EOL)end of lifeend of life
on Oct 25, 2021 Testing GitHub mentions, please ignore: @serhiy-storchaka
So long, and thanks for all the bugs.
- locked as resolved and limited conversation to collaborators
on Apr 11, 2022
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields: