summaryrefslogtreecommitdiff
path: root/Documentation/conf.py
diff options
context:
space:
mode:
authorTimothy Redaelli <tredaelli@redhat.com>2020-01-16 14:21:47 +0100
committerBen Pfaff <blp@ovn.org>2020-01-16 16:19:58 -0800
commit197c21a63de06c0804801bb9ee674b88a7dfe08d (patch)
tree1a25c5eee2a5c894243381ab9ff2682f8260f914 /Documentation/conf.py
parenta529e3cd1f410747778c3a8be1370a618ef0c861 (diff)
downloadopenvswitch-197c21a63de06c0804801bb9ee674b88a7dfe08d.tar.gz
Documentation: Fix building with Python 3.9
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>
Diffstat (limited to 'Documentation/conf.py')
-rw-r--r--Documentation/conf.py2
1 files changed, 1 insertions, 1 deletions
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)":