)]}'
{"lodgeit/lib/captcha.py":[{"author":{"_account_id":4146,"name":"Clark Boylan","email":"cboylan@sapwetik.org","username":"cboylan"},"change_message_id":"8d8900c84b2ea2e8f03004be1d2b7ed9df67909c","unresolved":false,"context_lines":[{"line_number":27,"context_line":"try:"},{"line_number":28,"context_line":"    xrange"},{"line_number":29,"context_line":"except NameError:"},{"line_number":30,"context_line":"    xrange \u003d range"},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"resource_path \u003d abspath(join(dirname(__file__), pardir, \u0027res\u0027))"},{"line_number":33,"context_line":""}],"source_content_type":"text/x-python","patch_set":8,"id":"1fa4df85_55ade1e6","line":30,"updated":"2020-03-05 18:27:45.000000000","message":"Note range is valid in python2 as well.","commit_id":"9b854e7729730f3310620c0c9e0570dd8a9994c4"}],"scripts/lodgeit.py":[{"author":{"_account_id":4146,"name":"Clark Boylan","email":"cboylan@sapwetik.org","username":"cboylan"},"change_message_id":"8d8900c84b2ea2e8f03004be1d2b7ed9df67909c","unresolved":false,"context_lines":[{"line_number":187,"context_line":"    xmlrpc \u003d get_xmlrpc_service()"},{"line_number":188,"context_line":"    languages \u003d xmlrpc.pastes.getLanguages().items()"},{"line_number":189,"context_line":"    languages.sort("},{"line_number":190,"context_line":"        lambda a, b: (a[1].lower() \u003e b[1].lower())-(a[1].lower() \u003c b[1].lower())"},{"line_number":191,"context_line":"    )"},{"line_number":192,"context_line":"    print(\u0027Supported Languages:\u0027)"},{"line_number":193,"context_line":"    for alias, name in languages:"}],"source_content_type":"text/x-python","patch_set":8,"id":"1fa4df85_3575c564","line":190,"updated":"2020-03-05 18:27:45.000000000","message":"Python3 list.sort accepts a key function that should have as input a single value. There is apparently functools.cmp_to_key to aid in this, however I think a simpler version would be:\n\n  languages.sort(key\u003dlambda a: a[1].lower)\n\nPython2 accepts a key option on its sort function too, its just not the first arg (old cmp style is).","commit_id":"9b854e7729730f3310620c0c9e0570dd8a9994c4"}],"tox.ini":[{"author":{"_account_id":4146,"name":"Clark Boylan","email":"cboylan@sapwetik.org","username":"cboylan"},"change_message_id":"8d8900c84b2ea2e8f03004be1d2b7ed9df67909c","unresolved":false,"context_lines":[{"line_number":3,"context_line":"envlist \u003d pep8, py27, py36"},{"line_number":4,"context_line":"skipsdist \u003d True"},{"line_number":5,"context_line":""},{"line_number":6,"context_line":"[testenv]"},{"line_number":7,"context_line":"setenv \u003d VIRTUAL_ENV\u003d{envdir}"},{"line_number":8,"context_line":"deps \u003d -r{toxinidir}/requirements.txt"},{"line_number":9,"context_line":"       -r{toxinidir}/test-requirements.txt"}],"source_content_type":"text/x-properties","patch_set":8,"id":"1fa4df85_f56acd7e","line":6,"updated":"2020-03-05 18:27:45.000000000","message":"I would add a basepython \u003d python3 here simply because without it commands like pep8 will default to using whichever python tox is installed under.","commit_id":"9b854e7729730f3310620c0c9e0570dd8a9994c4"}]}
