We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 48bab56 commit 671b403Copy full SHA for 671b403
1 file changed
ietf/utils/validators.py
@@ -78,11 +78,8 @@ def validate_mime_type(file, valid):
78
# work around mis-identification of text where a line has 'virtual' as
79
# the first word:
80
if mime_type == 'text/x-c++' and re.search(rb'(?m)^virtual\s', raw):
81
- mod = raw.replace(b'virtual', b' virtual'))
+ mod = raw.replace(b'virtual', b' virtual')
82
mime_type, encoding = get_mime_type(mod)
83
- debug.show('mime_type')
84
- debug.show('encoding')
85
- debug.show('valid')
86
if valid and not mime_type in valid:
87
raise ValidationError('Found content with unexpected mime type: %s. Expected one of %s.' %
88
(mime_type, ', '.join(valid) ))
0 commit comments