Skip to content
This repository was archived by the owner on Dec 2, 2021. It is now read-only.

Commit e4f58fe

Browse files
committed
changed use of vars(my_namedtuple) to my_namedtuple._as_dict() (see http://bugs.python.org/issue24931); added requirements.txt
1 parent 599c141 commit e4f58fe

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

18-asyncio/charfinder/http_charfinder.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def home(request): # <1>
2929
print('Query: {!r}'.format(query)) # <3>
3030
if query: # <4>
3131
descriptions = list(index.find_descriptions(query))
32-
res = '\n'.join(ROW_TPL.format(**vars(descr))
32+
res = '\n'.join(ROW_TPL.format(**descr._asdict())
3333
for descr in descriptions)
3434
msg = index.status(query, len(descriptions))
3535
else:
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
aiohttp==0.13.1

0 commit comments

Comments
 (0)