File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1- # urlsresolver v1.1.4
1+ # urlsresolver v1.1.6
22Python urls resolver library with meta refresh support.
33
44You can expand real address of any shortened url with ` urlsresolver.resolve_url(url) ` function.
Original file line number Diff line number Diff line change 77
88from requests .packages import chardet
99
10- __version__ = (1 , 1 , 5 )
10+ __version__ = (1 , 1 , 6 )
1111__author__ = 'Alexandr Shurigin (https://github.com/phpdude/)'
1212
1313# HTML tags syntax http://www.w3.org/TR/html-markup/syntax.html
@@ -30,13 +30,13 @@ def get_tags(html, tag_name):
3030
3131 for x in re .findall ('(?:(%s))' % TAG_ATTRIBUTES_REGEX , m , re .UNICODE ):
3232 if x [1 ]:
33- attrs [x [1 ]] = parser .unescape (x [2 ]. decode ( 'utf-8' ) )
33+ attrs [x [1 ]] = parser .unescape (x [2 ])
3434 elif x [3 ]:
35- attrs [x [3 ]] = parser .unescape (x [4 ]. decode ( 'utf-8' ) )
35+ attrs [x [3 ]] = parser .unescape (x [4 ])
3636 elif x [5 ]:
37- attrs [x [5 ]] = parser .unescape (x [6 ]. decode ( 'utf-8' ) )
37+ attrs [x [5 ]] = parser .unescape (x [6 ])
3838 elif x [7 ]:
39- attrs [x [7 ]] = parser .unescape (x [7 ]. decode ( 'utf-8' ) )
39+ attrs [x [7 ]] = parser .unescape (x [7 ])
4040
4141 yield attrs
4242
You can’t perform that action at this time.
0 commit comments