)]}'
{"test/unit/locale/test_locale.py":[{"author":{"_account_id":9166,"name":"Lars Butler","email":"lars.butler@gmail.com","username":"larsbutler"},"change_message_id":"c758598094fa8e823ba3566df8b3dab880147686","unresolved":false,"context_lines":[{"line_number":31,"context_line":"class TestTranslations(unittest.TestCase):"},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"    def setUp(self):"},{"line_number":34,"context_line":"        try:"},{"line_number":35,"context_line":"            self.la \u003d os.environ[\u0027LC_ALL\u0027]"},{"line_number":36,"context_line":"        except KeyError:"},{"line_number":37,"context_line":"            self.la \u003d None"}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAATn%2F%2Fq8Y%3D","line":34,"updated":"2013-10-30 16:07:40.000000000","message":"The try/excepts shouldn\u0027t be necessary here. A more concise way to express this would be:\n\nself.la \u003d os.environ.get(\u0027LC_ALL\u0027)\n\nIf the key doesn\u0027t exist, `get` will return `None` by default.","commit_id":"a838b7664c12b5e9549d19daf61e55d10b05343b"},{"author":{"_account_id":3152,"name":"lars-butler","username":"lars-butler","inactive":true},"change_message_id":"11238d902bf389561131051c15ceff490f5e2420","unresolved":false,"context_lines":[{"line_number":31,"context_line":"class TestTranslations(unittest.TestCase):"},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"    def setUp(self):"},{"line_number":34,"context_line":"        try:"},{"line_number":35,"context_line":"            self.la \u003d os.environ[\u0027LC_ALL\u0027]"},{"line_number":36,"context_line":"        except KeyError:"},{"line_number":37,"context_line":"            self.la \u003d None"}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAATn%2F%2FqJA%3D","line":34,"in_reply_to":"AAAATn%2F%2Fq8Y%3D","updated":"2013-10-30 18:44:05.000000000","message":"Also, you can consider using this pattern: http://www.voidspace.org.uk/python/mock/patch.html#mock.patch.dict.\nHere\u0027s an example from swift: http://bit.ly/1dqdYRQ","commit_id":"a838b7664c12b5e9549d19daf61e55d10b05343b"},{"author":{"_account_id":6198,"name":"Peter Portante","email":"peter.a.portante@gmail.com","username":"peter-a-portante"},"change_message_id":"214d5c7bd40944a86d7ee8f754e10d4c39401ade","unresolved":false,"context_lines":[{"line_number":31,"context_line":"class TestTranslations(unittest.TestCase):"},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"    def setUp(self):"},{"line_number":34,"context_line":"        try:"},{"line_number":35,"context_line":"            self.la \u003d os.environ[\u0027LC_ALL\u0027]"},{"line_number":36,"context_line":"        except KeyError:"},{"line_number":37,"context_line":"            self.la \u003d None"}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAATn%2F%2FqH4%3D","line":34,"in_reply_to":"AAAATn%2F%2Fq8Y%3D","updated":"2013-10-30 18:43:28.000000000","message":"Done","commit_id":"a838b7664c12b5e9549d19daf61e55d10b05343b"}]}
