]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
docs: Import print_function in reformat-news.py
authorAndrea Bolognani <abologna@redhat.com>
Thu, 15 Mar 2018 16:53:13 +0000 (17:53 +0100)
committerAndrea Bolognani <abologna@redhat.com>
Mon, 19 Mar 2018 09:03:54 +0000 (10:03 +0100)
The script already works perfectly fine with Python 2, but that's
more by chance than by design: we have a single occurrence of
print(), and it just so happens that its only argument is an
expression. Importing print_function makes the script more future,
err, past proof.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
docs/reformat-news.py

index 89f7ccb3dc6d8a1d243167bee7ae5976cd817882..fe08bf6d918708cf24cc6d91f165ac6e53f9488d 100755 (executable)
@@ -21,6 +21,8 @@
 # Authors:
 #     Andrea Bolognani <abologna@redhat.com>
 
+from __future__ import print_function
+
 import sys
 
 COLUMNS = 80