]> granicus.if.org Git - python/commit
Add NULL checks to the initializer of the locale module
authorChristian Heimes <christian@python.org>
Thu, 8 Sep 2016 22:24:12 +0000 (00:24 +0200)
committerChristian Heimes <christian@python.org>
Thu, 8 Sep 2016 22:24:12 +0000 (00:24 +0200)
commitff4fddde57d5579dff3a83d99e20cd06366b10d6
tree0ed3f055681e06dcfd5d6ce207c8bf84161e680d
parent45af0c83da093ac8f6756d98c36e064e7c01b19b
Add NULL checks to the initializer of the locale module

The _locale module was using old-style APIs to set numeric module
constants from macros. The new way requires less code and properly
checks for NULL.

CID 1295027
Modules/_localemodule.c