summaryrefslogtreecommitdiff
path: root/Python/graminit.c
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2018-09-20 19:52:18 -0700
committerGitHub <noreply@github.com>2018-09-20 19:52:18 -0700
commitc510c6b8b60f211793e0b84c317ea6974e8a6153 (patch)
tree5a29313bc3b07fed7fb5c26d64734b9ae4052867 /Python/graminit.c
parenta4ae828ee416a66d8c7bf5ee71d653c2cc6a26dd (diff)
downloadcpython-git-c510c6b8b60f211793e0b84c317ea6974e8a6153.tar.gz
Simplify PyInit_timezone. (GH-9467)
Reduce the knotty preprocessor conditional logic, dedent unnecessarily nested code, and handle errors properly. The first edition of this change (afde1c1a05cc8a1e8adf6403c451f6708509a605) failed (bpo-34715) because FreeBSD doesn't define the timezone globals. That's why we're now checking for HAVE_DECL_TZNAME.
Diffstat (limited to 'Python/graminit.c')
0 files changed, 0 insertions, 0 deletions