<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/libvirt-python.git/examples, branch v9.3.0</title>
<subtitle>libvirt.org: git/libvirt-python.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libvirt-python.git/'/>
<entry>
<title>examples: remove use of deprecated setDaemon method</title>
<updated>2022-06-08T15:43:52+00:00</updated>
<author>
<name>Daniel P. Berrangé</name>
<email>berrange@redhat.com</email>
</author>
<published>2022-05-17T14:40:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libvirt-python.git/commit/?id=693a93f85b267f7156a906a88ba95f6128802fea'/>
<id>693a93f85b267f7156a906a88ba95f6128802fea</id>
<content type='text'>
In Python 3.10 the setDaemon method was deprecated. It is redundant
since the 'daemon' parameter can be given when creating the thread,
or the 'daemon' attribute can be set after it was created.

Signed-off-by: Daniel P. Berrangé &lt;berrange@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In Python 3.10 the setDaemon method was deprecated. It is redundant
since the 'daemon' parameter can be given when creating the thread,
or the 'daemon' attribute can be set after it was created.

Signed-off-by: Daniel P. Berrangé &lt;berrange@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Add support for domain event for memory device size change</title>
<updated>2021-10-08T10:23:27+00:00</updated>
<author>
<name>Daniel P. Berrangé</name>
<email>berrange@redhat.com</email>
</author>
<published>2021-10-08T10:23:27+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libvirt-python.git/commit/?id=13ddf17f838900533f4c4646a3cec2174aa34f12'/>
<id>13ddf17f838900533f4c4646a3cec2174aa34f12</id>
<content type='text'>
Signed-off-by: Daniel P. Berrangé &lt;berrange@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Daniel P. Berrangé &lt;berrange@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Add support for memory failure event callbacks</title>
<updated>2020-11-12T14:51:56+00:00</updated>
<author>
<name>Daniel P. Berrangé</name>
<email>berrange@redhat.com</email>
</author>
<published>2020-11-12T14:51:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libvirt-python.git/commit/?id=417b39049ef01a39fd7789f6f1eb861d6893075f'/>
<id>417b39049ef01a39fd7789f6f1eb861d6893075f</id>
<content type='text'>
Signed-off-by: Daniel P. Berrangé &lt;berrange@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Daniel P. Berrangé &lt;berrange@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>examples/event-test: Fix remove return type</title>
<updated>2020-08-06T06:50:37+00:00</updated>
<author>
<name>Philipp Hahn</name>
<email>hahn@univention.de</email>
</author>
<published>2020-08-06T06:49:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libvirt-python.git/commit/?id=7c93891420a8df6d6b6e3f141548c6dae6664789'/>
<id>7c93891420a8df6d6b6e3f141548c6dae6664789</id>
<content type='text'>
The remove function are supposed to return 0 on success and -1 on failure.
&lt;https://libvirt.org/html/libvirt-libvirt-event.html#virEventRemoveTimeoutFunc&gt;

Signed-off-by: Philipp Hahn &lt;hahn@univention.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The remove function are supposed to return 0 on success and -1 on failure.
&lt;https://libvirt.org/html/libvirt-libvirt-event.html#virEventRemoveTimeoutFunc&gt;

Signed-off-by: Philipp Hahn &lt;hahn@univention.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>examples: Fix white space</title>
<updated>2020-08-05T07:43:02+00:00</updated>
<author>
<name>Philipp Hahn</name>
<email>hahn@univention.de</email>
</author>
<published>2018-11-20T07:34:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libvirt-python.git/commit/?id=74a78fa42c7dcf75343909923cc87184107cbd31'/>
<id>74a78fa42c7dcf75343909923cc87184107cbd31</id>
<content type='text'>
indent by 4 spaces
one spaces around assignments

Signed-off-by: Philipp Hahn &lt;hahn@univention.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
indent by 4 spaces
one spaces around assignments

Signed-off-by: Philipp Hahn &lt;hahn@univention.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>examples: Replace sys.exit() with exit()</title>
<updated>2020-08-05T07:43:02+00:00</updated>
<author>
<name>Philipp Hahn</name>
<email>hahn@univention.de</email>
</author>
<published>2020-07-28T05:15:55+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libvirt-python.git/commit/?id=b801ff31faf97a616e554ba266783d480e00b781'/>
<id>b801ff31faf97a616e554ba266783d480e00b781</id>
<content type='text'>
No need to import sys.

Signed-off-by: Philipp Hahn &lt;hahn@univention.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
No need to import sys.

Signed-off-by: Philipp Hahn &lt;hahn@univention.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>examples: Cleanup imports</title>
<updated>2020-08-05T07:43:02+00:00</updated>
<author>
<name>Philipp Hahn</name>
<email>hahn@univention.de</email>
</author>
<published>2018-11-16T12:55:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libvirt-python.git/commit/?id=f496dc55ee0c4ec248e27fd78f04edc51e75a92f'/>
<id>f496dc55ee0c4ec248e27fd78f04edc51e75a92f</id>
<content type='text'>
Break import into multiple lines as recommended by PEP-8

Move imports to top

Remove unused imports

Signed-off-by: Philipp Hahn &lt;hahn@univention.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Break import into multiple lines as recommended by PEP-8

Move imports to top

Remove unused imports

Signed-off-by: Philipp Hahn &lt;hahn@univention.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>examples: Do not use bare except</title>
<updated>2020-08-05T07:43:02+00:00</updated>
<author>
<name>Philipp Hahn</name>
<email>hahn@univention.de</email>
</author>
<published>2020-04-27T08:29:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libvirt-python.git/commit/?id=4e22f4de6f4f10160e5c0b5b6c3c824deffb6a32'/>
<id>4e22f4de6f4f10160e5c0b5b6c3c824deffb6a32</id>
<content type='text'>
as it also catches SystemExit, InterruptedError, SyntaxError and such.

Signed-off-by: Philipp Hahn &lt;hahn@univention.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
as it also catches SystemExit, InterruptedError, SyntaxError and such.

Signed-off-by: Philipp Hahn &lt;hahn@univention.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>examples: Convert to ArgumentParser</title>
<updated>2020-08-05T07:43:02+00:00</updated>
<author>
<name>Philipp Hahn</name>
<email>hahn@univention.de</email>
</author>
<published>2020-07-28T05:05:19+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libvirt-python.git/commit/?id=06aba185a8c6354776776f3e665317f5c763af5c'/>
<id>06aba185a8c6354776776f3e665317f5c763af5c</id>
<content type='text'>
Replace getopt() and hand-rolled-parser with argparse.ArgumentParser.

Fix wrong header comments copy-pasted from domstart.py

Signed-off-by: Philipp Hahn &lt;hahn@univention.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Replace getopt() and hand-rolled-parser with argparse.ArgumentParser.

Fix wrong header comments copy-pasted from domstart.py

Signed-off-by: Philipp Hahn &lt;hahn@univention.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>examples: Add/fix PEP 484 type annotation</title>
<updated>2020-08-05T07:43:02+00:00</updated>
<author>
<name>Philipp Hahn</name>
<email>hahn@univention.de</email>
</author>
<published>2020-04-27T09:10:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libvirt-python.git/commit/?id=9cf539a2a8c0055ba2a42d26677ec392e0e4f7c1'/>
<id>9cf539a2a8c0055ba2a42d26677ec392e0e4f7c1</id>
<content type='text'>
Signed-off-by: Philipp Hahn &lt;hahn@univention.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Philipp Hahn &lt;hahn@univention.de&gt;
</pre>
</div>
</content>
</entry>
</feed>
