From 39bf25aeb57b0d1933f7729496f249e3cd67a816 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Fri, 28 Dec 2007 16:33:55 +0000 Subject: [PATCH] Fixed a bug. git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@144 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23 --- Robots/bkmk_rsimple.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Robots/bkmk_rsimple.py b/Robots/bkmk_rsimple.py index 19825eb..47c2c7b 100644 --- a/Robots/bkmk_rsimple.py +++ b/Robots/bkmk_rsimple.py @@ -48,7 +48,8 @@ urllib._urlopener = MyURLopener() # Fake headers to pretend this is a real browser _version = "Links (2.1; Linux 2.6 i686; 80x25)" urllib._urlopener.addheaders[0] = ('User-Agent', _version) -_version = "bookmarks_db (Python %d.%d.%d; urllib/%s)" % (sys.version_info[:3], urllib.__version__) +_version = "bookmarks_db (Python %d.%d.%d; urllib/%s)" % ( + sys.version_info[0], sys.version_info[1], sys.version_info[2], urllib.__version__) urllib._urlopener.addheader('X-User-Agent', _version) urllib._urlopener.addheader('Connection', 'close') -- 2.39.5