)]}'
{"pbr/siblings.py":[{"author":{"_account_id":12898,"name":"Tony Breeds","email":"tony@bakeyournoodle.com","username":"tonyb"},"change_message_id":"e2fd9d3a0ec6b897ceeecd1dba8c4a2b39171645","unresolved":false,"context_lines":[{"line_number":31,"context_line":"    \u0027\u0027\u0027Get package name from a setup.cfg file.\u0027\u0027\u0027"},{"line_number":32,"context_line":"    try:"},{"line_number":33,"context_line":"        c \u003d configparser.ConfigParser()"},{"line_number":34,"context_line":"        c.read(setup_cfg)"},{"line_number":35,"context_line":"        return c.get(\u0027metadata\u0027, \u0027name\u0027)"},{"line_number":36,"context_line":"    except Exception:"},{"line_number":37,"context_line":"        log.debug(\"No name in %s\", setup_cfg)"}],"source_content_type":"text/x-python","patch_set":1,"id":"df7087c5_3bac638b","line":34,"range":{"start_line":34,"start_character":8,"end_line":34,"end_character":25},"updated":"2018-03-08 05:31:09.000000000","message":"TIL: ConfigParser.read() doesn\u0027t raise and exception if the file doesn\u0027t exist.\n\nhttps://github.com/python/cpython/blob/master/Lib/configparser.py#L697-L698\n\nThanks","commit_id":"bd12b54bdbff9702c386e5611a57e4e5a3b25d1c"},{"author":{"_account_id":12898,"name":"Tony Breeds","email":"tony@bakeyournoodle.com","username":"tonyb"},"change_message_id":"e2fd9d3a0ec6b897ceeecd1dba8c4a2b39171645","unresolved":false,"context_lines":[{"line_number":45,"context_line":""},{"line_number":46,"context_line":"def pip_command(*args):"},{"line_number":47,"context_line":"    \"\"\"Execute a pip command in the current python.\"\"\""},{"line_number":48,"context_line":"    pip_args \u003d [sys.executable, \u0027-m\u0027, \u0027pip\u0027] + list(args)"},{"line_number":49,"context_line":"    log.debug(\"Executing %s\", \" \".join(pip_args))"},{"line_number":50,"context_line":"    output \u003d subprocess.check_output(pip_args, stderr\u003dsubprocess.STDOUT)"},{"line_number":51,"context_line":"    for line in output.decode(\u0027utf-8\u0027).split(\u0027\\n\u0027):"}],"source_content_type":"text/x-python","patch_set":1,"id":"df7087c5_fb058b7b","line":48,"updated":"2018-03-08 05:31:09.000000000","message":"Based on https://mail.python.org/pipermail/distutils-sig/2017-October/031642.html and https://github.com/pypa/pip/blob/master/src/pip/__init__.py\n\nI expect this to fail with pip 10.  As far as the pip team is concerned the pip shell is the preferred interface","commit_id":"bd12b54bdbff9702c386e5611a57e4e5a3b25d1c"}]}
