Skip to content

Commit 58c5996

Browse files
committed
small update to examples.py
1 parent cd05f40 commit 58c5996

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

examples.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def example_complex():
136136
<body>
137137
<div class="main">
138138
<h1>Talks by PyCon 2016</h1>
139-
<div class="talks">
139+
<div class="talks" id="d5esfbb5d03adfdfede8a342238d6a68">
140140
<div class="talk" data-id="c7f1fbb5d03a409d9de8abb5238d6a68">
141141
<a href="/pycon2016/kelsey-gilmore-innis-seriously-strong-security-on-a-shoestring">
142142
<img src="/presentations/c7f1fbb5d03a409d9de8abb5238d6a68/thumb_slide_0.jpg">
@@ -183,7 +183,7 @@ def example_complex():
183183
"""
184184

185185
# Parse the document
186-
parser = HTMLement("div", attrs={"class": "talks", "no": False})
186+
parser = HTMLement("div", attrs={"class": "talks", "id": True})
187187
parser.feed(html)
188188
root = parser.close()
189189

@@ -205,6 +205,7 @@ def example_complex():
205205
print("Date = {}".format(date))
206206
print("")
207207

208+
208209
if __name__ == "__main__":
209210
example_simple()
210211
print("")

0 commit comments

Comments
 (0)