| Commit message (Collapse) | Author | Age | Files | Lines |
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
links in documentation to avoid having dangling pointers to the internet)
|
| |
|
|
| |
Discovered running flake8.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Specifically, this was confusing to mypy.
The new code is slightly easier to understand if you don't know what's going
on, IMO, otherwise I wouldn't necessarily change valid upstream code to appease
a typechecker.
Specifically, before this change:
$ mypy dateutil/zoneinfo/__init__.py | grep zoneinfo
dateutil/zoneinfo/__init__.py:18: error: Name 'tzfile' already defined (possibly by an import)
dateutil/zoneinfo/__init__.py:18: error: Cycle in inheritance hierarchy
That Cycle inheritance one is bad enough to cause mypy to give an error even
with `--follow-imports=silent`, which might be a bug in mypy.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
I would humbly like to suggest dateutil drop support for Python 2.6.
The last release of Python 2.6 was 2013-10-29, over 3 years ago. It is
no longer receiving security fixes.
https://www.python.org/dev/peps/pep-0361/
The pip project itself has recently dropped support for 2.6. Their
numbers estimate that Python 2.6 accounts for ~2% of their downloads.
pypa/pip#4343
For projects that still use Python 2.6, they can continue to pip install
an older version.
I've tried my best to remove as much 2.6 specific code as I can,
including the 'Programming Language :: Python :: 2.6' trove classifier
from setup.py. I've also removed Travis CI testing, which should result
in faster testing and fewer wasted resources.
Code changed:
- Removed Python2.6 from testing configuration
- setup.py cleanups due to fewer version complications
- Removed unittest2 dependency and monkey patching
- Use set literals
- Use dict comprehension
- Remove total_seconds workaround
- Remove TarFile.open() context manager workaround
Thanks for considering.
|
| | |
|
| |
|
|
|
|
| |
E302 expected 2 blank lines, found X
https://pep8.readthedocs.io/en/latest/intro.html#error-codes
|
| |\
| |
| | |
Clean up unused imports
|
| | | |
|
| |/ |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
| |
This fixes a bug that occurs on google app engine. See dateutil issue #239
|
| | |
|
| | |
|
| | |
|
| |\
| |
| | |
Fix tzwin error
|
| | | |
|
| | |
| |
| |
| | |
exception suite is now less prone to indentation typos
|
| |/
|
|
| |
PATH set to invalid folder (errno 20), and others shouldn't be silenced.
|
| |
|
|
| |
bugfix #97
|
| | |
|
| |
|
|
|
|
|
| |
Add the entire zoneinfo metadata to the tar archive, and add
a function to access it. Also add the metadata to the docs.
Fixes #27 instead of #39
|
| |
|
|
|
|
|
|
|
|
| |
This function was removed from the zoneinfo module in version 2.3 and
causes an error when doing a wildcard import from the zoneinfo module.
>>> from dateutil.zoneinfo import *
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'setcachesize'
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
Changed the reading of the tar.gz file.
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
| |
Due to Astrolabe lawsuite, the tzdata is now hosted at IANA. It seems like
something has changed in the file ordering too, so that backwards now needs
to be explicitly ordered as last to make links work (there was a bug that
UTC wasn't linked to Etc/UTC, for example).
|
| |
|
|
|
|
|
|
|
|
| |
Fix remaining references to PSF license, change maintainer info.
Removed most occurances of __author__, since it felt redundant
with the copyright notice (credit) and package metadata
(developer contact).
Also fixed references to Python 2.3 (it's not even tested anymore)
and changed calls from python3 to just python (let the system decide).
|
| | |
|
| | |
|
| |
|
|
|
|
| |
- New tests for negative byyearday.
- Fixed some email references.
- Updating version to 1.2.
|
| | |
|
| |
|
|
|
|
|
| |
- Adding tzwin.py, contributed by Jeffrey Harris.
- Minor tweaks in setup.py.
- Adding README and example.py.
- Putting old scheduler.py in the sandbox.
|
| | |
|