Skip to content

Commit 4d582bd

Browse files
committed
fix a few obvious lint warnings
1 parent 285ff4c commit 4d582bd

File tree

1 file changed

+14
-15
lines changed

1 file changed

+14
-15
lines changed

index.py

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,10 @@
1-
import make_schema_doc
2-
from make_schema_doc import BzSchemaProcessingException
3-
import schema_remarks
4-
51
import cgi
6-
import os
7-
import re
8-
import string
9-
import io
10-
import sys
112
import time
123
import html
13-
import urllib.request, urllib.parse, urllib.error
4+
5+
import make_schema_doc
6+
from make_schema_doc import BzSchemaProcessingException
7+
import schema_remarks
148

159
# 1. GENERIC CGI SUPPORT FOR RAVENBROOK
1610
#
@@ -285,7 +279,7 @@ def check_bugzilla_version(self, param):
285279
if not version:
286280
raise BzSchemaException(400, 'Bad form parameters',
287281
'No %s parameter.' % param)
288-
if not (version in schema_remarks.version_order):
282+
if not version in schema_remarks.version_order:
289283
raise BzSchemaException(404, 'No such Bugzilla version',
290284
'No such Bugzilla version: %s.'
291285
% version)
@@ -339,7 +333,7 @@ def prepare_body(self):
339333
self.to_version))
340334
self.h1 = self.title
341335
self.b(make_schema_doc.make_body(self.from_version, self.to_version))
342-
336+
343337
class single_webpage(schema_webpage):
344338
def check_form_parameters(self):
345339
self.check_bugzilla_single()
@@ -361,7 +355,8 @@ def prepare_body(self):
361355
'or of the schema changes between any two versions.</p>'
362356
'<p>It was written by staff at <a href="http://www.ravenbrook.com/">Ravenbrook '
363357
'Limited</a>, as part of the <a href="http://www.ravenbrook.com/project/p4dti">'
364-
'P4DTI</a> project under contract to <a href="http://www.perforce.com">Perforce, Inc.</a> '
358+
'P4DTI</a> project under contract to <a href="http://www.perforce.com">Perforce, '
359+
'Inc.</a> '
365360
'The source code and data for this service are open source and available '
366361
'at <a href="http://github.com/bugzilla/bugzilla-schema">GitHub</a>.</p>')
367362

@@ -394,7 +389,11 @@ def prepare_body(self):
394389
self.b('</td></tr>')
395390
####
396391
self.b('</table>')
397-
self.b(f'<p>Note that this tool was just recently resurrected and is still in the process of being updated. While the version numbers are loaded for every version that currently exists, much of the schema data has not yet been loaded. The newest version currently available is {schema_remarks.default_last_version}.</p>')
392+
self.b('<p>Note that this tool was just recently resurrected and is '
393+
'still in the process of being updated. While the version numbers are loaded for '
394+
'every version that currently exists, much of the schema data has not yet been '
395+
'loaded. The newest version currently available is '
396+
f'{schema_remarks.default_last_version}.</p>')
398397
self.b('</div>')
399398

400399
def options(self, options, selected = None):
@@ -434,7 +433,7 @@ def show_page():
434433
# B. DOCUMENT HISTORY
435434
#
436435
# 2004-11-12 NB Adapted from issue.cgi.
437-
#
436+
#
438437
#
439438
# C. COPYRIGHT AND LICENSE
440439
#

0 commit comments

Comments
 (0)