Bugzilla – Attachment 66241 Details for
Bug 54110
Create script to identify most active bug wranglers
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Use python3-compatible print syntax
python3-compatible-print.diff (text/plain), 1.15 KB, created by
leighman
on 2012-08-28 19:13:08 UTC
(
hide
)
Description:
Use python3-compatible print syntax
Filename:
MIME Type:
Creator:
leighman
Created:
2012-08-28 19:13:08 UTC
Size:
1.15 KB
patch
obsolete
>--- bug-wranglers2.py 2012-08-28 20:09:32.000000000 +0100 >+++ bug-wranglers.py 2012-08-28 20:07:10.000000000 +0100 >@@ -10,7 +10,7 @@ > month = sys.argv[1] > > url = 'http://lists.freedesktop.org/archives/libreoffice-bugs/' + month + '.txt.gz' >-print 'Downloading ' + url >+print('Downloading ' + url) > > try: > response = urllib2.urlopen(url) >@@ -29,14 +29,15 @@ > topreporters = Counter(reporters).most_common(10) > topwranglers = Counter(wranglers).most_common(10) > >- print '=== Top reporters:' >+ print('\n=== ' + month[5:] + ' ' + month[:4] + '===') >+ print('\n--- Top 10 reporters ---') > for reporter in topreporters: >- print reporter[0] + '\t' + str(reporter[1]) >+ print('{0:40}{1:5d}'.format(reporter[0], reporter[1])) > >- print '=== Top wranglers:' >+ print('\n--- Top 10 wranglers ---') > for wrangler in topwranglers: >- print wrangler[0] + '\t' + str(wrangler[1]) >+ print('{0:40}{1:5d}'.format(wrangler[0], wrangler[1])) > > except urllib2.URLError: >- print 'Unknown file - give an archive in the form YYYY-Month as argv[1]' >+ print('Unknown file - give an archive in the form YYYY-Month as argv[1]') >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 54110
:
66182
|
66235
|
66241
|
66242
|
66244
|
66247
|
78586
|
78598