From: Andrea Bolognani Date: Thu, 15 Mar 2018 16:53:13 +0000 (+0100) Subject: docs: Import print_function in reformat-news.py X-Git-Tag: v4.2.0-rc1~98 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9671ecfe5a96b474c67f0a7a78583944f85d5003;p=thirdparty%2Flibvirt.git docs: Import print_function in reformat-news.py 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 Reviewed-by: Daniel P. Berrangé --- diff --git a/docs/reformat-news.py b/docs/reformat-news.py index 89f7ccb3dc..fe08bf6d91 100755 --- a/docs/reformat-news.py +++ b/docs/reformat-news.py @@ -21,6 +21,8 @@ # Authors: # Andrea Bolognani +from __future__ import print_function + import sys COLUMNS = 80