base.strip()

Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
This commit is contained in:
2018-02-26 18:25:18 -05:00
parent eeedbdba86
commit 45ccce5c78
+1 -2
View File
@@ -157,7 +157,7 @@ class BaseParser:
# Support for <base> tag.
base = self.find('base', first=True)
if base:
return base.attrs['href']
return base.attrs['href'].strip()
else:
url = '/'.join(self.url.split('/')[:-1])
@@ -219,7 +219,6 @@ def user_agent(style=None):
return useragent[style]
class Session(requests.Session):
"""A consumable session, for cookie persistience and connection pooling,
amongst other things.