return "(%s)" % ' '.join(s)
-icons = {} # Icon cache; maps URL to a tuple (content type, data)
- # or None if there is no icon.
+# Icon cache; maps URL to a tuple (content type, data)
+# or None if there is no icon.
+icons = {}
+
class robot_base(Robot):
timeout = 60
try:
# extract charset from "text/html; foo; charset=UTF-8, bar; baz;"
self.charset = content.lower().split('charset=')[1].split(';')[0].split(',')[0]
- self.meta_charset = 1 # Remember that the charset was retrieved from
- # META tag, not from the Content-Type header
+ # Remember that the charset was retrieved from
+ # META tag, not from the Content-Type header
+ self.meta_charset = 1
except IndexError:
pass