<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/dateutil-git.git/dateutil, branch pganssle-patch-1</title>
<subtitle>github.com: dateutil/dateutil.git
</subtitle>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/dateutil-git.git/'/>
<entry>
<title>Improve documentation for parser errors/warnings</title>
<updated>2020-01-02T19:49:54+00:00</updated>
<author>
<name>Paul Ganssle</name>
<email>paul@ganssle.io</email>
</author>
<published>2020-01-02T16:51:00+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/dateutil-git.git/commit/?id=6d89db3e530945362c1bc96e7530be3b359276f0'/>
<id>6d89db3e530945362c1bc96e7530be3b359276f0</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Document that parser.parse raises ParserError</title>
<updated>2020-01-02T19:49:54+00:00</updated>
<author>
<name>Paul Ganssle</name>
<email>paul@ganssle.io</email>
</author>
<published>2020-01-02T16:31:20+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/dateutil-git.git/commit/?id=579cd769f05a75855be37b32c13910cc04e3f86f'/>
<id>579cd769f05a75855be37b32c13910cc04e3f86f</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Update documentation links</title>
<updated>2020-01-02T19:49:50+00:00</updated>
<author>
<name>Paul Ganssle</name>
<email>paul@ganssle.io</email>
</author>
<published>2020-01-02T16:30:11+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/dateutil-git.git/commit/?id=6edfecd6afb22fb2c7f0fd79259e40526fd20e2a'/>
<id>6edfecd6afb22fb2c7f0fd79259e40526fd20e2a</id>
<content type='text'>
Periodic update of all links that point to redirects or http targets
when an https target is available.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Periodic update of all links that point to redirects or http targets
when an https target is available.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix custom repr for ParserError</title>
<updated>2020-01-02T19:08:55+00:00</updated>
<author>
<name>Paul Ganssle</name>
<email>paul@ganssle.io</email>
</author>
<published>2020-01-02T16:54:27+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/dateutil-git.git/commit/?id=ea7f441b455cabbae2bf98f2d10fd11724001155'/>
<id>ea7f441b455cabbae2bf98f2d10fd11724001155</id>
<content type='text'>
This was originally dead code, because an indentation error had `__repr__`
defined after the `return` statement in `__str__`. The definition of the
`__repr__` is also changed to be more in line with the conception of a
repr as "what you would have to evalue to get this object".

Even though this is not guaranteed behavior, this commit also adds a
regression test to avoid simple errors like this in the future.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This was originally dead code, because an indentation error had `__repr__`
defined after the `return` statement in `__str__`. The definition of the
`__repr__` is also changed to be more in line with the conception of a
repr as "what you would have to evalue to get this object".

Even though this is not guaranteed behavior, this commit also adds a
regression test to avoid simple errors like this in the future.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix TypeError in parser wrapper logic</title>
<updated>2020-01-02T17:36:59+00:00</updated>
<author>
<name>Mark Bailey</name>
<email>msb@eastface.co.uk</email>
</author>
<published>2019-12-23T22:46:03+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/dateutil-git.git/commit/?id=79d2e486a34911ada6d81701f14dd3c4b9790afd'/>
<id>79d2e486a34911ada6d81701f14dd3c4b9790afd</id>
<content type='text'>
In attempting to pass-through the string representation of an exception
we are wrapping, we made the erroneous assumption that `args[0]` would
always be a string (or something that can concatenate cleanly with a
string). This turns out not to be the case with `IllegalMonthError`,
where it is an integer, so to avoid raising an erroneous `TypeError`, we
first convert the wrapped exception to a string.

See GH issue #981.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In attempting to pass-through the string representation of an exception
we are wrapping, we made the erroneous assumption that `args[0]` would
always be a string (or something that can concatenate cleanly with a
string). This turns out not to be the case with `IllegalMonthError`,
where it is an integer, so to avoid raising an erroneous `TypeError`, we
first convert the wrapped exception to a string.

See GH issue #981.
</pre>
</div>
</content>
</entry>
<entry>
<title>Lock around strong cache updates</title>
<updated>2019-11-03T01:33:04+00:00</updated>
<author>
<name>Paul Ganssle</name>
<email>paul@ganssle.io</email>
</author>
<published>2019-11-03T01:24:29+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/dateutil-git.git/commit/?id=6e92f2111589ab061b66bd332dcb4a33a58acb84'/>
<id>6e92f2111589ab061b66bd332dcb4a33a58acb84</id>
<content type='text'>
Since the strong cache uses operations in OrderedDict that are not
thread-safe in Python 2, it is necessary to acquire a lock while
updating the dictionary.

When Python 2 support is dropped, we can likely refactor this to avoid
locking.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Since the strong cache uses operations in OrderedDict that are not
thread-safe in Python 2, it is necessary to acquire a lock while
updating the dictionary.

When Python 2 support is dropped, we can likely refactor this to avoid
locking.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix test_tzlocal_offset_equal[GMT-tzoff1]</title>
<updated>2019-11-03T00:30:44+00:00</updated>
<author>
<name>Kubilay Kocak</name>
<email>koobs@users.noreply.github.com</email>
</author>
<published>2019-06-25T02:30:13+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/dateutil-git.git/commit/?id=38a5cd8486b08818c72e51efa8ca40151670bdeb'/>
<id>38a5cd8486b08818c72e51efa8ca40151670bdeb</id>
<content type='text'>
test_tzlocal_offset_equal[GMT-tzoff1] fails if a system does not
have a defined (installed) GMT timezone, for example if "Link Etc/GMT GMT"
is not defined in the zoneinfo configuration:

&gt;           assert tz.tzlocal() == tzoff
E           AssertionError: assert tzlocal() == tzoffset(u'GMT', 0)
E             -tzlocal()
E             +tzoffset(u'GMT', 0)

An example of such a configuration is FreeBSD, who's default timezone is
UTC [1][2]. This configuration results in any "non-present" or undefined TZ
name being returned/processed as the default timezone name (in FreeBSD's
case, UTC).

Further, POSIX does not recognize [3] TZ=GMT or TZ=UTC as valid values
because they neither start with a colon nor contain a numeric offset hour
field.

Accordingly, update the GMT value for this parametrized test to GMT0, a
specific (not aliased) timezone, making it more robust to system
configuration differences.

[1] https://svnweb.freebsd.org/changeset/base/130332
[2] https://svnweb.freebsd.org/changeset/base/199405
[3] https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap08.html
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
test_tzlocal_offset_equal[GMT-tzoff1] fails if a system does not
have a defined (installed) GMT timezone, for example if "Link Etc/GMT GMT"
is not defined in the zoneinfo configuration:

&gt;           assert tz.tzlocal() == tzoff
E           AssertionError: assert tzlocal() == tzoffset(u'GMT', 0)
E             -tzlocal()
E             +tzoffset(u'GMT', 0)

An example of such a configuration is FreeBSD, who's default timezone is
UTC [1][2]. This configuration results in any "non-present" or undefined TZ
name being returned/processed as the default timezone name (in FreeBSD's
case, UTC).

Further, POSIX does not recognize [3] TZ=GMT or TZ=UTC as valid values
because they neither start with a colon nor contain a numeric offset hour
field.

Accordingly, update the GMT value for this parametrized test to GMT0, a
specific (not aliased) timezone, making it more robust to system
configuration differences.

[1] https://svnweb.freebsd.org/changeset/base/130332
[2] https://svnweb.freebsd.org/changeset/base/199405
[3] https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap08.html
</pre>
</div>
</content>
</entry>
<entry>
<title>Auto-skip tests when TZ can't be changed.</title>
<updated>2019-11-02T15:46:54+00:00</updated>
<author>
<name>Alexander Shadchin</name>
<email>alexandr.shadchin@gmail.com</email>
</author>
<published>2019-02-27T14:49:16+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/dateutil-git.git/commit/?id=154d391d5d6f8d3c2e5b086f833620a8e78e0097'/>
<id>154d391d5d6f8d3c2e5b086f833620a8e78e0097</id>
<content type='text'>
At the moment these tests are skipped ad-hoc in the test suite, but we
can use `pytest.skip` in the context manager itself to skip them
automatically and make things easier on ourselves.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
At the moment these tests are skipped ad-hoc in the test suite, but we
can use `pytest.skip` in the context manager itself to skip them
automatically and make things easier on ourselves.
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #935 from labrys/patch-1</title>
<updated>2019-11-02T15:46:18+00:00</updated>
<author>
<name>Paul Ganssle</name>
<email>paul@ganssle.io</email>
</author>
<published>2019-11-02T15:46:18+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/dateutil-git.git/commit/?id=c31392f853819b8e5db0d032f6d79aadb4100a2b'/>
<id>c31392f853819b8e5db0d032f6d79aadb4100a2b</id>
<content type='text'>
Fix error message for gettz when passed bytes</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix error message for gettz when passed bytes</pre>
</div>
</content>
</entry>
<entry>
<title>Remove WarningTestMixin in favor of pytest.warns</title>
<updated>2019-11-02T15:10:14+00:00</updated>
<author>
<name>Paul Ganssle</name>
<email>paul@ganssle.io</email>
</author>
<published>2019-11-02T15:06:54+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/dateutil-git.git/commit/?id=13cce013d1534d114cb9bcaa5db3dbc35be27630'/>
<id>13cce013d1534d114cb9bcaa5db3dbc35be27630</id>
<content type='text'>
This was originally added when we were still supporting unittest-only
tests, but now that we require pytest, we can switch over to using the
built-in pytest.warns context manager.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This was originally added when we were still supporting unittest-only
tests, but now that we require pytest, we can switch over to using the
built-in pytest.warns context manager.
</pre>
</div>
</content>
</entry>
</feed>
