diff options
| author | 2015-08-26 07:57:23 -0300 | |
|---|---|---|
| committer | 2015-08-26 07:57:23 -0300 | |
| commit | 70ceb871117ca811d63cb02671dc0fefc2700883 (patch) | |
| tree | 846133ea39797d2cd1101cff2ac0818167353490 /nikola/packages/tzlocal/win32.py | |
| parent | 8559119e2f45b7f6508282962c0430423bfab051 (diff) | |
| parent | 787b97a4cb24330b36f11297c6d3a7a473a907d0 (diff) | |
Merge tag 'upstream/7.6.4'
Upstream version 7.6.4
Diffstat (limited to 'nikola/packages/tzlocal/win32.py')
| -rw-r--r-- | nikola/packages/tzlocal/win32.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/nikola/packages/tzlocal/win32.py b/nikola/packages/tzlocal/win32.py index 7005422..cb19284 100644 --- a/nikola/packages/tzlocal/win32.py +++ b/nikola/packages/tzlocal/win32.py @@ -1,3 +1,5 @@ +"""tzlocal for Windows.""" + try: import _winreg as winreg except ImportError: @@ -22,6 +24,7 @@ def valuestodict(key): def get_localzone_name(): + """Get local time zone name.""" # Windows is special. It has unique time zone names (in several # meanings of the word) available, but unfortunately, they can be # translated to the language of the operating system, so we need to @@ -78,7 +81,7 @@ def get_localzone_name(): def get_localzone(): - """Returns the zoneinfo-based tzinfo object that matches the Windows-configured timezone.""" + """Return the zoneinfo-based tzinfo object that matches the Windows-configured timezone.""" global _cache_tz if _cache_tz is None: _cache_tz = get_localzone_name() |
