From 197c21a63de06c0804801bb9ee674b88a7dfe08d Mon Sep 17 00:00:00 2001 From: Timothy Redaelli Date: Thu, 16 Jan 2020 14:21:47 +0100 Subject: Documentation: Fix building with Python 3.9 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit open(), io.open(), codecs.open() and fileinput.FileInput no longer accept 'U' ("universal newline") in the file mode. This flag was deprecated since Python 3.3. In Python 3, the "universal newline" is used by default when a file is open in text mode. Acked-by: Flavio Leitner Reported-at: https://bugzilla.redhat.com/1791681 Reported-by: Miro HronĨok Signed-off-by: Timothy Redaelli Signed-off-by: Ben Pfaff --- Documentation/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Documentation/conf.py') diff --git a/Documentation/conf.py b/Documentation/conf.py index 6bbfc02bd..37d92c36f 100644 --- a/Documentation/conf.py +++ b/Documentation/conf.py @@ -58,7 +58,7 @@ author = u'The Open vSwitch Development Community' # The full version, including alpha/beta/rc tags. release = None filename = "../configure.ac" -with open(filename, 'rU') as f: +with open(filename, 'r') as f: for line in f: if 'AC_INIT' in line: # Parse "AC_INIT(openvswitch, 2.7.90, bugs@openvswitch.org)": -- cgit v1.2.1