Skip to content

Commit

Permalink
Use with, it's idiomatic
Browse files Browse the repository at this point in the history
  • Loading branch information
twm committed Apr 15, 2017
1 parent 224d9f4 commit 3fb6af3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions html5lib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
Example usage::
import html5lib
f = open("my_document.html")
tree = html5lib.parse(f)
with open("my_document.html") as f:
tree = html5lib.parse(f)
"""

from __future__ import absolute_import, division, unicode_literals
Expand Down

0 comments on commit 3fb6af3

Please sign in to comment.