{"push_id":1501611306,"size":12,"distinct_size":12,"ref":"refs/heads/Ukrainian-localflavor","head":"3c09cb69cac6f1d0c8321a559322e994643f75de","before":"23673998bdb0d44258dfe4127170043d22927db7","commits":[{"sha":"033ddce68e5ffdf81c0184895765bfba5b6154ef","author":{"name":"Illia Volochii","email":"860486e4320d62f1f7d9b133edc0e03255e4529a@gmail.com"},"message":"Bump versions of requirements for testing. (#274)","distinct":true,"url":"https://api.github.com/repos/illia-v/django-localflavor/commits/033ddce68e5ffdf81c0184895765bfba5b6154ef"},{"sha":"e29b485b58e302dd3a5e0b338cac1af8e96b6341","author":{"name":"Ben Konrath","email":"9c85637c38b80821c7bd8a03bde7b59da81ab77d@bagu.org"},"message":"Fix changelog formatting.","distinct":true,"url":"https://api.github.com/repos/illia-v/django-localflavor/commits/e29b485b58e302dd3a5e0b338cac1af8e96b6341"},{"sha":"b93efeda3cef036ef35331b88211217b9d09cdbf","author":{"name":"Ben Konrath","email":"9c85637c38b80821c7bd8a03bde7b59da81ab77d@bagu.org"},"message":"Updated base translation file.","distinct":true,"url":"https://api.github.com/repos/illia-v/django-localflavor/commits/b93efeda3cef036ef35331b88211217b9d09cdbf"},{"sha":"96263d76b634865a5a73c89f3e431face6bcc22e","author":{"name":"Paul Donohue","email":"f27a17fc90c00d8c248d8510a1084221738b492b@PaulSD.com"},"message":"Lazily generate US_STATES, STATE_CHOICES, and USPS_CHOICES (#272)\n\nCommit 4369237 introduced lazy translations for US state names.\r\nHowever, US_STATES, STATE_CHOICES, and USPS_CHOICES are sorted at import\r\ntime based on the translated state names.  This causes two problems:\r\n1) If localflavor.us is imported during Django initialization, then an\r\n   exception will be thrown because translations cannot be made during\r\n   Django initialization.\r\n   (See https://github.com/django/django-localflavor/issues/203)\r\n2) When the run-time translations are different than the import-time\r\n   translations, US_STATES, STATE_CHOICES, and USPS_CHOICES are not\r\n   re-sorted based on the run-time translations, so those lists may be\r\n   mis-sorted.\r\n\r\nThis commit corrects these problems by lazily sorting US_STATES,\r\nSTATE_CHOICES, and USPS_CHOICES.\r\n\r\nUnfortunately, while this works as expected in most cases, the lazy\r\nevaluation may not work as expected in every case due to internal tuple\r\noptimizations in the Python interpreter.  For example,\r\n`US_STATES + ('XX', _('Select a State'))` works as expected, but\r\n`('XX', _('Select a State')) + US_STATES` throws\r\n'TypeError: can only concatenate tuple (not \"__proxy__\") to tuple'\r\nbecause Python concatenates the tuples entirely in C code without making\r\nany Python code calls to the US_STATES object, which prevents US_STATES\r\nfrom being lazily generated before the concatenation is processed.  To\r\nwork around this, you can use a slice index to force a Python code\r\ncall on the object before any other operations are processed:\r\n`('XX', _('Select a State')) + US_STATES[:]`","distinct":true,"url":"https://api.github.com/repos/illia-v/django-localflavor/commits/96263d76b634865a5a73c89f3e431face6bcc22e"},{"sha":"2f70da37be65ccf69dda7e17269b14214b0fd713","author":{"name":"Ben Konrath","email":"9c85637c38b80821c7bd8a03bde7b59da81ab77d@bagu.org"},"message":"Updated roadmap for 1.4 release.","distinct":true,"url":"https://api.github.com/repos/illia-v/django-localflavor/commits/2f70da37be65ccf69dda7e17269b14214b0fd713"},{"sha":"aaceba87aaca91ad5d6f7b76c6d7b534a1342d2d","author":{"name":"Ben Konrath","email":"9c85637c38b80821c7bd8a03bde7b59da81ab77d@bagu.org"},"message":"Bumped version to 1.4.","distinct":true,"url":"https://api.github.com/repos/illia-v/django-localflavor/commits/aaceba87aaca91ad5d6f7b76c6d7b534a1342d2d"},{"sha":"7217d712bdaaa22ffa6adf438c8bf947f1009c0a","author":{"name":"Ben Konrath","email":"9c85637c38b80821c7bd8a03bde7b59da81ab77d@bagu.org"},"message":"Added empty changelog template for 1.5.","distinct":true,"url":"https://api.github.com/repos/illia-v/django-localflavor/commits/7217d712bdaaa22ffa6adf438c8bf947f1009c0a"},{"sha":"2679eb7404fb42a4b4f30a3815c2ba6c1b6001fe","author":{"name":"Claude Paroz","email":"ed60e8337712f8d10c17ff054c6eab094948c063@2xlibre.net"},"message":"Removed unneeded '+' which breaks translatable string","distinct":true,"url":"https://api.github.com/repos/illia-v/django-localflavor/commits/2679eb7404fb42a4b4f30a3815c2ba6c1b6001fe"},{"sha":"6cefb13380f21023b4e30285c13f957f27e79819","author":{"name":"Claude Paroz","email":"ed60e8337712f8d10c17ff054c6eab094948c063@2xlibre.net"},"message":"Pulled translation updates from Transifex","distinct":true,"url":"https://api.github.com/repos/illia-v/django-localflavor/commits/6cefb13380f21023b4e30285c13f957f27e79819"},{"sha":"d53778d0e90d5d21ce9c1994508480b7d8911fbd","author":{"name":"Ben Konrath","email":"9c85637c38b80821c7bd8a03bde7b59da81ab77d@bagu.org"},"message":"Added Python 3.6 to tests. (#276)","distinct":true,"url":"https://api.github.com/repos/illia-v/django-localflavor/commits/d53778d0e90d5d21ce9c1994508480b7d8911fbd"},{"sha":"c92ed823c58045497cd1da0a2f429679e61601e8","author":{"name":"Illia Volochii","email":"860486e4320d62f1f7d9b133edc0e03255e4529a@gmail.com"},"message":"Merge branch 'master' into Ukraine-localflavor","distinct":true,"url":"https://api.github.com/repos/illia-v/django-localflavor/commits/c92ed823c58045497cd1da0a2f429679e61601e8"},{"sha":"3c09cb69cac6f1d0c8321a559322e994643f75de","author":{"name":"Illia Volochii","email":"860486e4320d62f1f7d9b133edc0e03255e4529a@gmail.com"},"message":"Change position of addition of Ukrainian local flavor in the changelog.","distinct":true,"url":"https://api.github.com/repos/illia-v/django-localflavor/commits/3c09cb69cac6f1d0c8321a559322e994643f75de"}]}
{"actor":{"display_login":"illia-v"}}