Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbfc278a

Browse files
committed
Silence bare-except
1 parent15e126f commitbfc278a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎html5lib/inputstream.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ def openStream(self, source):
449449

450450
try:
451451
stream.seek(stream.tell())
452-
except:
452+
except:# pylint:disable=bare-except
453453
stream=BufferedStream(stream)
454454

455455
returnstream

‎html5lib/utils.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
# We need this with u"" because of http://bugs.jython.org/issue2039
2828
_x=eval('u"\\uD800"')# pylint:disable=eval-used
2929
assertisinstance(_x,text_type)
30-
except:
30+
except:# pylint:disable=bare-except
3131
supports_lone_surrogates=False
3232
else:
3333
supports_lone_surrogates=True

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp