)]}'
{"pbr/packaging.py":[{"author":{"_account_id":7118,"name":"Ian Wienand","email":"iwienand@redhat.com","username":"iwienand"},"change_message_id":"7814c73aa297a945eb8ba062a59c107e56e8459a","unresolved":false,"context_lines":[{"line_number":326,"context_line":""},{"line_number":327,"context_line":"import importlib"},{"line_number":328,"context_line":"import pkgutil"},{"line_number":329,"context_line":"import resource"},{"line_number":330,"context_line":"import sys"},{"line_number":331,"context_line":"import types"},{"line_number":332,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"ba2be162_df4fc331","line":329,"updated":"2017-03-05 23:51:53.000000000","message":"this would be UNIX only (resources is part of the UNIX python addons?), so at a minimum I guess it needs to check if this import works.","commit_id":"2b3119c00b76dd176cb6c383390e42efec7c3e77"},{"author":{"_account_id":7118,"name":"Ian Wienand","email":"iwienand@redhat.com","username":"iwienand"},"change_message_id":"7814c73aa297a945eb8ba062a59c107e56e8459a","unresolved":false,"context_lines":[{"line_number":339,"context_line":"        val \u003d f(*args, **kwargs)"},{"line_number":340,"context_line":"        increment \u003d (resource.getrusage(resource.RUSAGE_SELF).ru_maxrss) - base"},{"line_number":341,"context_line":"        if increment \u003e 0:"},{"line_number":342,"context_line":"            print(\"%%f MB %%s.%%s\" %% (increment/1024,"},{"line_number":343,"context_line":"                                       f.__module__,"},{"line_number":344,"context_line":"                                       f.__name__))"},{"line_number":345,"context_line":"        return val"}],"source_content_type":"text/x-python","patch_set":2,"id":"ba2be162_3f98df69","line":342,"updated":"2017-03-05 23:51:53.000000000","message":"This reminds me a lot of LD_DEBUG type flags to the dynamic loader.  Like that, I really don\u0027t think this should go to stdout: at least it should go to stderr by default.  however, I think you also need an argument to put it into a file, to make it useful in  pipelines that are capturing and processing output.","commit_id":"2b3119c00b76dd176cb6c383390e42efec7c3e77"},{"author":{"_account_id":7118,"name":"Ian Wienand","email":"iwienand@redhat.com","username":"iwienand"},"change_message_id":"7814c73aa297a945eb8ba062a59c107e56e8459a","unresolved":false,"context_lines":[{"line_number":365,"context_line":""},{"line_number":366,"context_line":"if __name__ \u003d\u003d \"__main__\":"},{"line_number":367,"context_line":"    if len(sys.argv) \u003e 1 and sys.argv[1] \u003d\u003d \"--mem-trace\":"},{"line_number":368,"context_line":"        sys.argv.remove(\"--mem-trace\")"},{"line_number":369,"context_line":"        try:"},{"line_number":370,"context_line":"            import_submodules(\"%(module_name)s\".split(\".\")[0], custom_profile)"},{"line_number":371,"context_line":"        except:"}],"source_content_type":"text/x-python","patch_set":2,"id":"ba2be162_5f84b309","line":368,"updated":"2017-03-05 23:51:53.000000000","message":"I would not mess about with arguments.  Doing it like this also makes it quite hard to instrument if you\u0027re not at the point of being able to add to system()/exec() type calls.\n\nI expect that an environment variable to turn this on would work better.","commit_id":"2b3119c00b76dd176cb6c383390e42efec7c3e77"}]}
