https://bugzilla.wikimedia.org/show_bug.cgi?id=55016
Web browser: --- Bug ID: 55016 Summary: Extended version information in user-agent Product: Pywikibot Version: unspecified Hardware: All OS: All Status: NEW Severity: enhancement Priority: Unprioritized Component: General Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: legoktm.wikipedia@gmail.com Classification: Unclassified Mobile Platform: ---
Originally from: http://sourceforge.net/p/pywikipediabot/feature-requests/330/ Reported by: valhallasw Created on: 2013-02-04 20:52:53 Subject: Extended version information in user-agent Original description: See the discussion at https://www.mediawiki.org/wiki/Special:Code/pywikipedia/11027%5C#c33303
Implementation notes:
Hash of a file: >>> import hashlib >>> m = hashlib.sha1() >>> m.hexdigest() '93ae86148e74a7c3a3d63f7810b48c51889fba46'
Classes used in stack trace:
>> import inspect >> [(x.__module__, x.__name__) for x in (s[0].f_locals.get('self', None).__class__ for s in inspect.stack())]
Example result: [('wikipedia_family', 'Family'), ('pdb', 'Pdb'), ('pdb', 'Pdb'), ('pdb', 'Pdb'), ('pdb', 'Pdb'), ('pdb', 'Pdb'), ('pdb', 'Pdb'), ('pdb', 'Pdb'), ('pdb', 'Pdb'), ('wikipedia_family', 'Family'), ('wikipedia', 'Site'), ('wikipedia', 'Site'), ('wikipedia', 'Site'), ('wikipedia', 'Site'), ('wikipedia', 'Site'), ('wikipedia', 'Page'), ('wikipedia', 'Page'), ('__main__', 'Subject'), ('__main__', 'Subject'), ('__main__', 'InterwikiBot'), ('__main__', 'InterwikiBot'), ('__builtin__', 'NoneType'), ('__builtin__', 'NoneType'), ('__builtin__', 'NoneType'), ('pdb', 'Pdb'), ('pdb', 'Pdb'), ('__builtin__', 'NoneType'), ('__builtin__', 'NoneType'), ('__builtin__', 'NoneType'), ('__builtin__', 'NoneType')]