<feed xmlns='http://www.w3.org/2005/Atom'>
<title>libnl.git/python/netlink, branch main</title>
<subtitle>[no description]</subtitle>
<link rel='alternate' type='text/html' href='http://service.techsat.com/oss-git/libnl.git/'/>
<entry>
<title>python: Use correct decorator syntax in HTBQdisc</title>
<updated>2023-08-30T06:08:31Z</updated>
<author>
<name>David Ward</name>
<email>david.ward@ll.mit.edu</email>
</author>
<published>2023-08-30T00:54:19Z</published>
<link rel='alternate' type='text/html' href='http://service.techsat.com/oss-git/libnl.git/commit/?id=9aab12dff8e89b7da826c5c0826ef13c71963e28'/>
<id>9aab12dff8e89b7da826c5c0826ef13c71963e28</id>
<content type='text'>
Fixes: 87d370912ca8 ("netlink.nlattr re-implemented in more pythonic way")

https://github.com/thom311/libnl/pull/359
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes: 87d370912ca8 ("netlink.nlattr re-implemented in more pythonic way")

https://github.com/thom311/libnl/pull/359
</pre>
</div>
</content>
</entry>
<entry>
<title>python: drop unused "python/netlink/fixes.h"</title>
<updated>2023-08-03T07:05:03Z</updated>
<author>
<name>Thomas Haller</name>
<email>thaller@redhat.com</email>
</author>
<published>2023-08-03T06:48:46Z</published>
<link rel='alternate' type='text/html' href='http://service.techsat.com/oss-git/libnl.git/commit/?id=25c9019356cfecda81bc7a33a58fba539a6f0996'/>
<id>25c9019356cfecda81bc7a33a58fba539a6f0996</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>python: fix flake8 warnings E712</title>
<updated>2023-07-25T14:08:54Z</updated>
<author>
<name>Thomas Haller</name>
<email>thaller@redhat.com</email>
</author>
<published>2023-07-25T13:50:16Z</published>
<link rel='alternate' type='text/html' href='http://service.techsat.com/oss-git/libnl.git/commit/?id=e6b934a59c01d3ddcc20532a2846ac8d2d9cd154'/>
<id>e6b934a59c01d3ddcc20532a2846ac8d2d9cd154</id>
<content type='text'>
    ./python/netlink/route/links/bridge.py:29:31: E712 comparison to False should be 'if cond is False:' or 'if not cond:'
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
    ./python/netlink/route/links/bridge.py:29:31: E712 comparison to False should be 'if cond is False:' or 'if not cond:'
</pre>
</div>
</content>
</entry>
<entry>
<title>python: fix flake8 warnings E711</title>
<updated>2023-07-25T14:07:52Z</updated>
<author>
<name>Thomas Haller</name>
<email>thaller@redhat.com</email>
</author>
<published>2023-07-25T13:50:16Z</published>
<link rel='alternate' type='text/html' href='http://service.techsat.com/oss-git/libnl.git/commit/?id=2cea738b1407fdebf089139574bb434fd614c443'/>
<id>2cea738b1407fdebf089139574bb434fd614c443</id>
<content type='text'>
    ./python/netlink/core.py:194:17: E711 comparison to None should be 'if cond is None:'
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
    ./python/netlink/core.py:194:17: E711 comparison to None should be 'if cond is None:'
</pre>
</div>
</content>
</entry>
<entry>
<title>python: fix flake8 warnings E302</title>
<updated>2023-07-25T14:03:10Z</updated>
<author>
<name>Thomas Haller</name>
<email>thaller@redhat.com</email>
</author>
<published>2023-07-25T13:50:16Z</published>
<link rel='alternate' type='text/html' href='http://service.techsat.com/oss-git/libnl.git/commit/?id=d561096c1d30fb60d3eab82303828b3f062bd938'/>
<id>d561096c1d30fb60d3eab82303828b3f062bd938</id>
<content type='text'>
    ./python/netlink/util.py:19:1: E302 expected 2 blank lines, found 1
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
    ./python/netlink/util.py:19:1: E302 expected 2 blank lines, found 1
</pre>
</div>
</content>
</entry>
<entry>
<title>python: fix flake8 warnings E741</title>
<updated>2023-07-25T14:01:43Z</updated>
<author>
<name>Thomas Haller</name>
<email>thaller@redhat.com</email>
</author>
<published>2023-07-25T13:50:16Z</published>
<link rel='alternate' type='text/html' href='http://service.techsat.com/oss-git/libnl.git/commit/?id=29b06d0fe8c85165d8a114b85af72d354821ff84'/>
<id>29b06d0fe8c85165d8a114b85af72d354821ff84</id>
<content type='text'>
    ./python/netlink/core.py:424:9: E741 ambiguous variable name 'l'
    ./python/netlink/route/link.py:476:13: E741 ambiguous variable name 'l'
    ./python/netlink/route/tc.py:554:5: E741 ambiguous variable name 'l'
    ./python/netlink/route/tc.py:574:5: E741 ambiguous variable name 'l'
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
    ./python/netlink/core.py:424:9: E741 ambiguous variable name 'l'
    ./python/netlink/route/link.py:476:13: E741 ambiguous variable name 'l'
    ./python/netlink/route/tc.py:554:5: E741 ambiguous variable name 'l'
    ./python/netlink/route/tc.py:574:5: E741 ambiguous variable name 'l'
</pre>
</div>
</content>
</entry>
<entry>
<title>python: fix flake8 warnings F401</title>
<updated>2023-07-25T13:50:32Z</updated>
<author>
<name>Thomas Haller</name>
<email>thaller@redhat.com</email>
</author>
<published>2023-07-25T13:50:16Z</published>
<link rel='alternate' type='text/html' href='http://service.techsat.com/oss-git/libnl.git/commit/?id=9a3d91dfc791ce54565e04834b6d9937fe74a602'/>
<id>9a3d91dfc791ce54565e04834b6d9937fe74a602</id>
<content type='text'>
    ./doc/doxygen-link.py:4:1: F401 'fileinput' imported but unused
    ./doc/resolve-asciidoc-refs.py:5:1: F401 'fileinput' imported but unused
    ./python/doc/conf.py:14:1: F401 'sys' imported but unused
    ./python/doc/conf.py:14:1: F401 'os' imported but unused
    ./python/netlink/util.py:13:1: F401 '.core as netlink' imported but unused
    ./python/netlink/util.py:16:1: F401 'types' imported but unused
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
    ./doc/doxygen-link.py:4:1: F401 'fileinput' imported but unused
    ./doc/resolve-asciidoc-refs.py:5:1: F401 'fileinput' imported but unused
    ./python/doc/conf.py:14:1: F401 'sys' imported but unused
    ./python/doc/conf.py:14:1: F401 'os' imported but unused
    ./python/netlink/util.py:13:1: F401 '.core as netlink' imported but unused
    ./python/netlink/util.py:16:1: F401 'types' imported but unused
</pre>
</div>
</content>
</entry>
<entry>
<title>python: reformat all Python files with python-black</title>
<updated>2023-07-25T11:32:12Z</updated>
<author>
<name>Thomas Haller</name>
<email>thaller@redhat.com</email>
</author>
<published>2023-07-13T07:31:52Z</published>
<link rel='alternate' type='text/html' href='http://service.techsat.com/oss-git/libnl.git/commit/?id=3c753e3c94b01c63bf99b2709f4780e2df4608eb'/>
<id>3c753e3c94b01c63bf99b2709f4780e2df4608eb</id>
<content type='text'>
Automated code formatting is great. Use python-black for that ([1]).
Black us not configurable much (uncompromising) and follows PEP8.
It thus generates quite a standard, pleasing format.

But the point isn't whether the formatting is always the most
subjectively pleasing. The point is that the style is generated and
enforceable by an automated tool. It takes away places for nit picking,
while resulting in a more consistent code base.

As this reformats the entire code base, it introduces a large diff and
interferes with tools like git-blame. That will be somewhat alleviated
by adding a "blame.ignoreRevsFile" for git in the next commit.

The change is done automatically, by running python-black version
black-22.8.0-2.fc38.noarch:

    $ black .

The result is the same as

    $ ( git grep -l '#!.*\(PYTHON\|python\)' ; git ls-files '*.py' '*.py.in' ) \
        | sort -u \
        | xargs -d '\n' black

Note that the exact result depends on the version of black. Currently
that version is black==22.12.0 from pip. Yes, this means when we bump
the version in the future, some reformatting will happen.

[1] https://github.com/psf/black
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Automated code formatting is great. Use python-black for that ([1]).
Black us not configurable much (uncompromising) and follows PEP8.
It thus generates quite a standard, pleasing format.

But the point isn't whether the formatting is always the most
subjectively pleasing. The point is that the style is generated and
enforceable by an automated tool. It takes away places for nit picking,
while resulting in a more consistent code base.

As this reformats the entire code base, it introduces a large diff and
interferes with tools like git-blame. That will be somewhat alleviated
by adding a "blame.ignoreRevsFile" for git in the next commit.

The change is done automatically, by running python-black version
black-22.8.0-2.fc38.noarch:

    $ black .

The result is the same as

    $ ( git grep -l '#!.*\(PYTHON\|python\)' ; git ls-files '*.py' '*.py.in' ) \
        | sort -u \
        | xargs -d '\n' black

Note that the exact result depends on the version of black. Currently
that version is black==22.12.0 from pip. Yes, this means when we bump
the version in the future, some reformatting will happen.

[1] https://github.com/psf/black
</pre>
</div>
</content>
</entry>
<entry>
<title>Use print() function in both Python 2 and Python 3</title>
<updated>2022-07-06T14:15:14Z</updated>
<author>
<name>Christian Clauss</name>
<email>cclauss@me.com</email>
</author>
<published>2022-07-06T12:49:33Z</published>
<link rel='alternate' type='text/html' href='http://service.techsat.com/oss-git/libnl.git/commit/?id=00e46f16a563434d422af467e2126337f54c8d89'/>
<id>00e46f16a563434d422af467e2126337f54c8d89</id>
<content type='text'>
https://github.com/thom311/libnl/pull/327
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/thom311/libnl/pull/327
</pre>
</div>
</content>
</entry>
<entry>
<title>all: Use __typeof__ instead of typeof</title>
<updated>2019-08-16T05:42:03Z</updated>
<author>
<name>Michael Forney</name>
<email>mforney@mforney.org</email>
</author>
<published>2019-08-11T05:15:37Z</published>
<link rel='alternate' type='text/html' href='http://service.techsat.com/oss-git/libnl.git/commit/?id=24e5b315a55f8388cf1045b1573587d29712f253'/>
<id>24e5b315a55f8388cf1045b1573587d29712f253</id>
<content type='text'>
This allows libnl to be built with -std=c99, which prevents the compiler
from using non-reserved identifiers for extensions.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This allows libnl to be built with -std=c99, which prevents the compiler
from using non-reserved identifiers for extensions.
</pre>
</div>
</content>
</entry>
</feed>
