]> git.proxmox.com Git - ovs.git/commitdiff
Documentation: Fix building with Python 3.9
authorTimothy Redaelli <tredaelli@redhat.com>
Thu, 16 Jan 2020 13:21:47 +0000 (14:21 +0100)
committerBen Pfaff <blp@ovn.org>
Fri, 17 Jan 2020 00:19:58 +0000 (16:19 -0800)
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 <fbl@sysclose.org>
Reported-at: https://bugzilla.redhat.com/1791681
Reported-by: Miro HronĨok <mhroncok@redhat.com>
Signed-off-by: Timothy Redaelli <tredaelli@redhat.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
Documentation/conf.py

index 6bbfc02bdd09e07dbd9a99bc6b61364cefe6c07e..37d92c36f6a559d82ec946a789bca04d2f61cb35 100644 (file)
@@ -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)":