Skip to content

Commit 671b403

Browse files
committed
Fixed a syntax issue and removed debug calls.
- Legacy-Id: 16421
1 parent 48bab56 commit 671b403

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

ietf/utils/validators.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,8 @@ def validate_mime_type(file, valid):
7878
# work around mis-identification of text where a line has 'virtual' as
7979
# the first word:
8080
if mime_type == 'text/x-c++' and re.search(rb'(?m)^virtual\s', raw):
81-
mod = raw.replace(b'virtual', b' virtual'))
81+
mod = raw.replace(b'virtual', b' virtual')
8282
mime_type, encoding = get_mime_type(mod)
83-
debug.show('mime_type')
84-
debug.show('encoding')
85-
debug.show('valid')
8683
if valid and not mime_type in valid:
8784
raise ValidationError('Found content with unexpected mime type: %s. Expected one of %s.' %
8885
(mime_type, ', '.join(valid) ))

0 commit comments

Comments
 (0)