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

Commit3fb6af3

Browse files
committed
Use with, it's idiomatic
1 parent224d9f4 commit3fb6af3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎html5lib/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
Example usage::
88
99
import html5lib
10-
f =open("my_document.html")
11-
tree = html5lib.parse(f)
10+
withopen("my_document.html") as f:
11+
tree = html5lib.parse(f)
1212
"""
1313

1414
from __future__importabsolute_import,division,unicode_literals

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp