Feature Requests item #3603329, was opened at 2013-02-04 12:52 Message generated for change (Tracker Item Submitted) made by valhallasw You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603141&aid=3603329...
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Merlijn S. van Deen (valhallasw) Assigned to: Nobody/Anonymous (nobody) Summary: Extended version information in user-agent
Initial Comment: See the discussion at https://www.mediawiki.org/wiki/Special:Code/pywikipedia/11027#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')]
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603141&aid=3603329...
pywikipedia-bugs@lists.wikimedia.org