diff options
Diffstat (limited to 'nikola/packages')
| -rw-r--r-- | nikola/packages/datecond/LICENSE | 2 | ||||
| -rw-r--r-- | nikola/packages/datecond/__init__.py | 2 | ||||
| -rw-r--r-- | nikola/packages/pygments_better_html/LICENSE | 2 | ||||
| -rw-r--r-- | nikola/packages/pygments_better_html/__init__.py | 2 | ||||
| -rw-r--r-- | nikola/packages/tzlocal/unix.py | 5 |
5 files changed, 7 insertions, 6 deletions
diff --git a/nikola/packages/datecond/LICENSE b/nikola/packages/datecond/LICENSE index d9980a8..b6ccdf4 100644 --- a/nikola/packages/datecond/LICENSE +++ b/nikola/packages/datecond/LICENSE @@ -1,4 +1,4 @@ -Copyright © 2016-2020, Chris Warrick. +Copyright © 2016-2021, Chris Warrick. All rights reserved. Redistribution and use in source and binary forms, with or without diff --git a/nikola/packages/datecond/__init__.py b/nikola/packages/datecond/__init__.py index 92e7908..814e3a8 100644 --- a/nikola/packages/datecond/__init__.py +++ b/nikola/packages/datecond/__init__.py @@ -1,7 +1,7 @@ #!/usr/bin/env python # -*- encoding: utf-8 -*- # Date Conditionals v0.1.7 -# Copyright © 2015-2020, Chris Warrick. +# Copyright © 2015-2021, Chris Warrick. # All rights reserved. # # Redistribution and use in source and binary forms, with or without diff --git a/nikola/packages/pygments_better_html/LICENSE b/nikola/packages/pygments_better_html/LICENSE index 196413e..2c07d1e 100644 --- a/nikola/packages/pygments_better_html/LICENSE +++ b/nikola/packages/pygments_better_html/LICENSE @@ -1,4 +1,4 @@ -Copyright © 2020, Chris Warrick. +Copyright © 2020-2021, Chris Warrick. All rights reserved. Redistribution and use in source and binary forms, with or without diff --git a/nikola/packages/pygments_better_html/__init__.py b/nikola/packages/pygments_better_html/__init__.py index ed6e004..3303abb 100644 --- a/nikola/packages/pygments_better_html/__init__.py +++ b/nikola/packages/pygments_better_html/__init__.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- """Better HTML formatter for Pygments. -Copyright © 2020, Chris Warrick. +Copyright © 2020-2021, Chris Warrick. License: 3-clause BSD. Portions copyright © 2006-2019, the Pygments authors. (2-clause BSD). """ diff --git a/nikola/packages/tzlocal/unix.py b/nikola/packages/tzlocal/unix.py index 086ab7c..ce3e852 100644 --- a/nikola/packages/tzlocal/unix.py +++ b/nikola/packages/tzlocal/unix.py @@ -116,8 +116,9 @@ def _get_localzone(_root="/"): while start != 0: tzpath = tzpath[start:] try: - dateutil.tz.gettz(tzpath) - return tzpath + tested_tz = dateutil.tz.gettz(tzpath) + if tested_tz: + return tzpath except Exception: pass start = tzpath.find("/") + 1 |
