)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":5196,"name":"Matthew Treinish","email":"mtreinish@kortar.org","username":"treinish"},"change_message_id":"ce8769e086d050fe95b5e7f4cbd7629ddb8cf1c6","unresolved":false,"context_lines":[{"line_number":10,"context_line":"there are some people who like colored output. While this doesn\u0027t work"},{"line_number":11,"context_line":"for the OpenStack gate for local testing it would be nice to appease"},{"line_number":12,"context_line":"those folks and have a --color flag that adds different colors on the"},{"line_number":13,"context_line":"console output from subunit-trace."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"Change-Id: Iac48591786d10c908d63e6df94b979ded7d8dbe1"},{"line_number":16,"context_line":"Closes-Bug: #1519044"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"9a8ffd7b_c49392a2","line":13,"updated":"2015-11-24 15:40:04.000000000","message":"This sounds familiar :)","commit_id":"45a1adc5606186f7fc76c1b32802ef5463af9c04"},{"author":{"_account_id":5689,"name":"Masayuki Igawa","email":"masayuki@igawa.io","username":"igawa"},"change_message_id":"9299f79c4df3db0256311b956f28d684676d9fa6","unresolved":false,"context_lines":[{"line_number":10,"context_line":"there are some people who like colored output. While this doesn\u0027t work"},{"line_number":11,"context_line":"for the OpenStack gate for local testing it would be nice to appease"},{"line_number":12,"context_line":"those folks and have a --color flag that adds different colors on the"},{"line_number":13,"context_line":"console output from subunit-trace."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"Change-Id: Iac48591786d10c908d63e6df94b979ded7d8dbe1"},{"line_number":16,"context_line":"Closes-Bug: #1519044"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"9a8ffd7b_c317edeb","line":13,"in_reply_to":"9a8ffd7b_c49392a2","updated":"2015-11-25 03:38:00.000000000","message":"heh :) Yeah, \"COPY \u0026 PASTE\" from launchpad.","commit_id":"45a1adc5606186f7fc76c1b32802ef5463af9c04"}],"os_testr/subunit_trace.py":[{"author":{"_account_id":5196,"name":"Matthew Treinish","email":"mtreinish@kortar.org","username":"treinish"},"change_message_id":"ce8769e086d050fe95b5e7f4cbd7629ddb8cf1c6","unresolved":false,"context_lines":[{"line_number":147,"context_line":"    return False"},{"line_number":148,"context_line":""},{"line_number":149,"context_line":""},{"line_number":150,"context_line":"class _AnsiColorizer(object):"},{"line_number":151,"context_line":"    \"\"\"A colorizer is an object that loosely wraps around a stream"},{"line_number":152,"context_line":""},{"line_number":153,"context_line":"    allowing callers to write text to the stream in a particular color."}],"source_content_type":"text/x-python","patch_set":1,"id":"9a8ffd7b_64aae61b","line":150,"updated":"2015-11-24 15:40:04.000000000","message":"I\u0027m wondering do you think we should make a separate color module. This way we can add color to other utils if needed. The 3 classes added here don\u0027t seem specific to subunit-trace, but are general stream wrappers to print colored text. \n\nAlso, as a side note if we do it as a separate module I think it would be good to give the attribution to the original colorizer module too.","commit_id":"45a1adc5606186f7fc76c1b32802ef5463af9c04"},{"author":{"_account_id":5689,"name":"Masayuki Igawa","email":"masayuki@igawa.io","username":"igawa"},"change_message_id":"9299f79c4df3db0256311b956f28d684676d9fa6","unresolved":false,"context_lines":[{"line_number":147,"context_line":"    return False"},{"line_number":148,"context_line":""},{"line_number":149,"context_line":""},{"line_number":150,"context_line":"class _AnsiColorizer(object):"},{"line_number":151,"context_line":"    \"\"\"A colorizer is an object that loosely wraps around a stream"},{"line_number":152,"context_line":""},{"line_number":153,"context_line":"    allowing callers to write text to the stream in a particular color."}],"source_content_type":"text/x-python","patch_set":1,"id":"9a8ffd7b_390e2635","line":150,"in_reply_to":"9a8ffd7b_64aae61b","updated":"2015-11-25 03:38:00.000000000","message":"I agree with your opinion. I\u0027d like to separate this module.","commit_id":"45a1adc5606186f7fc76c1b32802ef5463af9c04"},{"author":{"_account_id":5196,"name":"Matthew Treinish","email":"mtreinish@kortar.org","username":"treinish"},"change_message_id":"ce8769e086d050fe95b5e7f4cbd7629ddb8cf1c6","unresolved":false,"context_lines":[{"line_number":182,"context_line":"            except Exception:"},{"line_number":183,"context_line":"                # guess false in case of error"},{"line_number":184,"context_line":"                return False"},{"line_number":185,"context_line":"    supported \u003d classmethod(supported)"},{"line_number":186,"context_line":""},{"line_number":187,"context_line":"    def write(self, text, color):"},{"line_number":188,"context_line":"        \"\"\"Write the given text to the stream in the given color."}],"source_content_type":"text/x-python","patch_set":1,"id":"9a8ffd7b_e40ed6e4","line":185,"updated":"2015-11-24 15:40:04.000000000","message":"Why not just use the class method decorator?","commit_id":"45a1adc5606186f7fc76c1b32802ef5463af9c04"},{"author":{"_account_id":5689,"name":"Masayuki Igawa","email":"masayuki@igawa.io","username":"igawa"},"change_message_id":"9299f79c4df3db0256311b956f28d684676d9fa6","unresolved":false,"context_lines":[{"line_number":182,"context_line":"            except Exception:"},{"line_number":183,"context_line":"                # guess false in case of error"},{"line_number":184,"context_line":"                return False"},{"line_number":185,"context_line":"    supported \u003d classmethod(supported)"},{"line_number":186,"context_line":""},{"line_number":187,"context_line":"    def write(self, text, color):"},{"line_number":188,"context_line":"        \"\"\"Write the given text to the stream in the given color."}],"source_content_type":"text/x-python","patch_set":1,"id":"9a8ffd7b_de958040","line":185,"in_reply_to":"9a8ffd7b_e40ed6e4","updated":"2015-11-25 03:38:00.000000000","message":"Done","commit_id":"45a1adc5606186f7fc76c1b32802ef5463af9c04"},{"author":{"_account_id":5196,"name":"Matthew Treinish","email":"mtreinish@kortar.org","username":"treinish"},"change_message_id":"ce8769e086d050fe95b5e7f4cbd7629ddb8cf1c6","unresolved":false,"context_lines":[{"line_number":217,"context_line":""},{"line_number":218,"context_line":"    def supported(cls, stream\u003dsys.stdout):"},{"line_number":219,"context_line":"        try:"},{"line_number":220,"context_line":"            import win32console"},{"line_number":221,"context_line":"            screenBuffer \u003d win32console.GetStdHandle("},{"line_number":222,"context_line":"                win32console.STD_OUT_HANDLE)"},{"line_number":223,"context_line":"        except ImportError:"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a8ffd7b_24129eb5","line":220,"updated":"2015-11-24 15:40:04.000000000","message":"There\u0027s not a better way to see if this works?","commit_id":"45a1adc5606186f7fc76c1b32802ef5463af9c04"},{"author":{"_account_id":5689,"name":"Masayuki Igawa","email":"masayuki@igawa.io","username":"igawa"},"change_message_id":"9299f79c4df3db0256311b956f28d684676d9fa6","unresolved":false,"context_lines":[{"line_number":217,"context_line":""},{"line_number":218,"context_line":"    def supported(cls, stream\u003dsys.stdout):"},{"line_number":219,"context_line":"        try:"},{"line_number":220,"context_line":"            import win32console"},{"line_number":221,"context_line":"            screenBuffer \u003d win32console.GetStdHandle("},{"line_number":222,"context_line":"                win32console.STD_OUT_HANDLE)"},{"line_number":223,"context_line":"        except ImportError:"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a8ffd7b_20b7ca3a","line":220,"in_reply_to":"9a8ffd7b_24129eb5","updated":"2015-11-25 03:38:00.000000000","message":"This should work. But I actually don\u0027t have python env on windows..\nSo I\u0027ll remove this class for now.","commit_id":"45a1adc5606186f7fc76c1b32802ef5463af9c04"},{"author":{"_account_id":5196,"name":"Matthew Treinish","email":"mtreinish@kortar.org","username":"treinish"},"change_message_id":"ce8769e086d050fe95b5e7f4cbd7629ddb8cf1c6","unresolved":false,"context_lines":[{"line_number":232,"context_line":"            return False"},{"line_number":233,"context_line":"        else:"},{"line_number":234,"context_line":"            return True"},{"line_number":235,"context_line":"    supported \u003d classmethod(supported)"},{"line_number":236,"context_line":""},{"line_number":237,"context_line":"    def write(self, text, color):"},{"line_number":238,"context_line":"        color \u003d self._colors[color]"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a8ffd7b_a4720e7b","line":235,"updated":"2015-11-24 15:40:04.000000000","message":"Why not just use the class method decorator?","commit_id":"45a1adc5606186f7fc76c1b32802ef5463af9c04"},{"author":{"_account_id":5689,"name":"Masayuki Igawa","email":"masayuki@igawa.io","username":"igawa"},"change_message_id":"9299f79c4df3db0256311b956f28d684676d9fa6","unresolved":false,"context_lines":[{"line_number":232,"context_line":"            return False"},{"line_number":233,"context_line":"        else:"},{"line_number":234,"context_line":"            return True"},{"line_number":235,"context_line":"    supported \u003d classmethod(supported)"},{"line_number":236,"context_line":""},{"line_number":237,"context_line":"    def write(self, text, color):"},{"line_number":238,"context_line":"        color \u003d self._colors[color]"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a8ffd7b_be9c3c6a","line":235,"in_reply_to":"9a8ffd7b_a4720e7b","updated":"2015-11-25 03:38:00.000000000","message":"Done","commit_id":"45a1adc5606186f7fc76c1b32802ef5463af9c04"},{"author":{"_account_id":5196,"name":"Matthew Treinish","email":"mtreinish@kortar.org","username":"treinish"},"change_message_id":"ce8769e086d050fe95b5e7f4cbd7629ddb8cf1c6","unresolved":false,"context_lines":[{"line_number":248,"context_line":""},{"line_number":249,"context_line":"    def supported(cls, stream\u003dsys.stdout):"},{"line_number":250,"context_line":"        return True"},{"line_number":251,"context_line":"    supported \u003d classmethod(supported)"},{"line_number":252,"context_line":""},{"line_number":253,"context_line":"    def write(self, text, color):"},{"line_number":254,"context_line":"        self.stream.write(text)"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a8ffd7b_245e1eea","line":251,"updated":"2015-11-24 15:40:04.000000000","message":"Why not just use the class method decorator?","commit_id":"45a1adc5606186f7fc76c1b32802ef5463af9c04"},{"author":{"_account_id":5689,"name":"Masayuki Igawa","email":"masayuki@igawa.io","username":"igawa"},"change_message_id":"9299f79c4df3db0256311b956f28d684676d9fa6","unresolved":false,"context_lines":[{"line_number":248,"context_line":""},{"line_number":249,"context_line":"    def supported(cls, stream\u003dsys.stdout):"},{"line_number":250,"context_line":"        return True"},{"line_number":251,"context_line":"    supported \u003d classmethod(supported)"},{"line_number":252,"context_line":""},{"line_number":253,"context_line":"    def write(self, text, color):"},{"line_number":254,"context_line":"        self.stream.write(text)"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a8ffd7b_7e8d7430","line":251,"in_reply_to":"9a8ffd7b_245e1eea","updated":"2015-11-25 03:38:00.000000000","message":"Done","commit_id":"45a1adc5606186f7fc76c1b32802ef5463af9c04"},{"author":{"_account_id":5196,"name":"Matthew Treinish","email":"mtreinish@kortar.org","username":"treinish"},"change_message_id":"ce8769e086d050fe95b5e7f4cbd7629ddb8cf1c6","unresolved":false,"context_lines":[{"line_number":318,"context_line":"                reason \u003d test[\u0027details\u0027].get(\u0027reason\u0027, \u0027\u0027)"},{"line_number":319,"context_line":"                if reason:"},{"line_number":320,"context_line":"                    reason \u003d \u0027: \u0027 + reason.as_text()"},{"line_number":321,"context_line":"                stream.write(\u0027{%s} %s ... %s\\n\u0027 % ("},{"line_number":322,"context_line":"                    worker, name, reason))"},{"line_number":323,"context_line":"                colorizer.write(\u0027SKIPPED\u0027, \u0027blue\u0027)"},{"line_number":324,"context_line":"                stream.write(\u0027%s\u0027 % (reason))"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a8ffd7b_4487a261","line":321,"updated":"2015-11-24 15:40:04.000000000","message":"I think you just need to drop \u0027%s\\n\u0027 here because you print it below","commit_id":"45a1adc5606186f7fc76c1b32802ef5463af9c04"},{"author":{"_account_id":5689,"name":"Masayuki Igawa","email":"masayuki@igawa.io","username":"igawa"},"change_message_id":"9299f79c4df3db0256311b956f28d684676d9fa6","unresolved":false,"context_lines":[{"line_number":318,"context_line":"                reason \u003d test[\u0027details\u0027].get(\u0027reason\u0027, \u0027\u0027)"},{"line_number":319,"context_line":"                if reason:"},{"line_number":320,"context_line":"                    reason \u003d \u0027: \u0027 + reason.as_text()"},{"line_number":321,"context_line":"                stream.write(\u0027{%s} %s ... %s\\n\u0027 % ("},{"line_number":322,"context_line":"                    worker, name, reason))"},{"line_number":323,"context_line":"                colorizer.write(\u0027SKIPPED\u0027, \u0027blue\u0027)"},{"line_number":324,"context_line":"                stream.write(\u0027%s\u0027 % (reason))"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a8ffd7b_fea08492","line":321,"in_reply_to":"9a8ffd7b_4487a261","updated":"2015-11-25 03:38:00.000000000","message":"Nice catch, thanks :)","commit_id":"45a1adc5606186f7fc76c1b32802ef5463af9c04"},{"author":{"_account_id":5196,"name":"Matthew Treinish","email":"mtreinish@kortar.org","username":"treinish"},"change_message_id":"ce8769e086d050fe95b5e7f4cbd7629ddb8cf1c6","unresolved":false,"context_lines":[{"line_number":321,"context_line":"                stream.write(\u0027{%s} %s ... %s\\n\u0027 % ("},{"line_number":322,"context_line":"                    worker, name, reason))"},{"line_number":323,"context_line":"                colorizer.write(\u0027SKIPPED\u0027, \u0027blue\u0027)"},{"line_number":324,"context_line":"                stream.write(\u0027%s\u0027 % (reason))"},{"line_number":325,"context_line":"                stream.write(\u0027\\n\u0027)"},{"line_number":326,"context_line":"        else:"},{"line_number":327,"context_line":"            if abbreviate:"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a8ffd7b_c43e32b8","line":324,"updated":"2015-11-24 15:40:04.000000000","message":"So this results in the skipped line being printed twice. Once without \u0027SKIPPED\u0027, just the worker, test name and reason. The second with SKIPPED and the reason. I\u0027m not sure we want to duplicate this.","commit_id":"45a1adc5606186f7fc76c1b32802ef5463af9c04"},{"author":{"_account_id":5689,"name":"Masayuki Igawa","email":"masayuki@igawa.io","username":"igawa"},"change_message_id":"9299f79c4df3db0256311b956f28d684676d9fa6","unresolved":false,"context_lines":[{"line_number":321,"context_line":"                stream.write(\u0027{%s} %s ... %s\\n\u0027 % ("},{"line_number":322,"context_line":"                    worker, name, reason))"},{"line_number":323,"context_line":"                colorizer.write(\u0027SKIPPED\u0027, \u0027blue\u0027)"},{"line_number":324,"context_line":"                stream.write(\u0027%s\u0027 % (reason))"},{"line_number":325,"context_line":"                stream.write(\u0027\\n\u0027)"},{"line_number":326,"context_line":"        else:"},{"line_number":327,"context_line":"            if abbreviate:"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a8ffd7b_1efea86b","line":324,"in_reply_to":"9a8ffd7b_c43e32b8","updated":"2015-11-25 03:38:00.000000000","message":"oops, thanks. I just forgot to remove the first one.","commit_id":"45a1adc5606186f7fc76c1b32802ef5463af9c04"}]}
