)]}'
{"horizon/management/commands/pull_catalog.py":[{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"34bb3d2ed26a0dbdb79e299a9bc29c199cb670ea","unresolved":false,"context_lines":[{"line_number":43,"context_line":"                                  \"languages are used\"))"},{"line_number":44,"context_line":"        parser.add_argument(\u0027-p\u0027, \u0027--project\u0027, type\u003dstr, default\u003dPROJECT,"},{"line_number":45,"context_line":"                            help\u003d(\"The name of the project to extract \""},{"line_number":46,"context_line":"                                  \"strings from e.g. \u0027horizon\u0027\"))"},{"line_number":47,"context_line":"        parser.add_argument(\u0027-m\u0027, \u0027--module\u0027, type\u003dstr, nargs\u003d\u0027+\u0027,"},{"line_number":48,"context_line":"                            default\u003dMODULES,"},{"line_number":49,"context_line":"                            help\u003d(\"The target python module(s) to extract \""}],"source_content_type":"text/x-python","patch_set":1,"id":"df140735_11c424f4","line":46,"updated":"2017-06-04 17:44:25.000000000","message":"It is nice if the default value is described here.","commit_id":"ee72949f430ccad6d4d5c1c68a8e23ac908821c7"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"34bb3d2ed26a0dbdb79e299a9bc29c199cb670ea","unresolved":false,"context_lines":[{"line_number":47,"context_line":"        parser.add_argument(\u0027-m\u0027, \u0027--module\u0027, type\u003dstr, nargs\u003d\u0027+\u0027,"},{"line_number":48,"context_line":"                            default\u003dMODULES,"},{"line_number":49,"context_line":"                            help\u003d(\"The target python module(s) to extract \""},{"line_number":50,"context_line":"                                  \"strings from e.g. \u0027openstack_dashboard\u0027\"))"},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"    def handle(self, *args, **options):"},{"line_number":53,"context_line":"        for module in options[\u0027module\u0027]:"}],"source_content_type":"text/x-python","patch_set":1,"id":"df140735_f1b6508a","line":50,"updated":"2017-06-04 17:44:25.000000000","message":"ditto","commit_id":"ee72949f430ccad6d4d5c1c68a8e23ac908821c7"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"f9f6095518892710a01f585f8955a57605ed78dc","unresolved":false,"context_lines":[{"line_number":13,"context_line":"# limitations under the License."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"import os"},{"line_number":16,"context_line":"import requests"},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"from django.core.management.base import BaseCommand"},{"line_number":19,"context_line":"from django.utils import translation"}],"source_content_type":"text/x-python","patch_set":6,"id":"5f201791_dec8b475","line":16,"updated":"2017-06-20 16:36:00.000000000","message":"requests is third party, so it needs to be moved around django.","commit_id":"644343a9f04dbbeaddadd68a2eceb77ced533a71"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"d23ca58968d1a557432d51de691fdb7194c466e7","unresolved":false,"context_lines":[{"line_number":13,"context_line":"# limitations under the License."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"import os"},{"line_number":16,"context_line":"import requests"},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"from django.core.management.base import BaseCommand"},{"line_number":19,"context_line":"from django.utils import translation"}],"source_content_type":"text/x-python","patch_set":6,"id":"5f201791_3d032145","line":16,"in_reply_to":"5f201791_dec8b475","updated":"2017-06-21 03:41:52.000000000","message":"Done","commit_id":"644343a9f04dbbeaddadd68a2eceb77ced533a71"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"f9f6095518892710a01f585f8955a57605ed78dc","unresolved":false,"context_lines":[{"line_number":72,"context_line":"                        domain\u003ddomain))"},{"line_number":73,"context_line":""},{"line_number":74,"context_line":"                    with open(pofile, \u0027w+\u0027) as f:"},{"line_number":75,"context_line":"                        f.write(new_po.text.encode(\u0027utf-8\u0027))"}],"source_content_type":"text/x-python","patch_set":6,"id":"5f201791_1e4aac26","line":75,"updated":"2017-06-20 16:36:00.000000000","message":"I tested this with Japanese. The downloaded PO files cannot be read as the text encoding looks broken.\n\nI checked requests document and it turns out the default encoding is iso-8859-1. We need to specify utf-8 as encoding.\n\n  new_po \u003d requests.get(....)\n  new_po.encoding \u003d \u0027utf-8\u0027\n  with open(....) as f:\n       f.write(new_po.text.encode(\u0027utf-8\u0027))\n\nAfter adding \".encoding \u003d \u0027utf-8\u0027\", it works well in my env.","commit_id":"644343a9f04dbbeaddadd68a2eceb77ced533a71"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"d23ca58968d1a557432d51de691fdb7194c466e7","unresolved":false,"context_lines":[{"line_number":72,"context_line":"                        domain\u003ddomain))"},{"line_number":73,"context_line":""},{"line_number":74,"context_line":"                    with open(pofile, \u0027w+\u0027) as f:"},{"line_number":75,"context_line":"                        f.write(new_po.text.encode(\u0027utf-8\u0027))"}],"source_content_type":"text/x-python","patch_set":6,"id":"5f201791_1d006534","line":75,"in_reply_to":"5f201791_1e4aac26","updated":"2017-06-21 03:41:52.000000000","message":"Done","commit_id":"644343a9f04dbbeaddadd68a2eceb77ced533a71"}]}
