File: remove-mode-u-from-open.patch

package info (click to toggle)
sphinx-testing 1.0.1-0.2
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 220 kB
  • sloc: python: 741; makefile: 8; sh: 7
file content (18 lines) | stat: -rw-r--r-- 558 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Description: Remove mode='U" from open call
 This is removed from Python 3.11
Author: Thomas Goirand <zigo@debian.org>
Bug-Debian: https://bugs.debian.org/1025184
Forwarded: no
Last-Update: 2022-12-05

--- sphinx-testing-1.0.1.orig/src/sphinx_testing/path.py
+++ sphinx-testing-1.0.1/src/sphinx_testing/path.py
@@ -156,7 +156,7 @@ class path(text_type):
         """
         Returns the text in the file.
         """
-        f = open(self, mode='U', **kwargs)
+        f = open(self, **kwargs)
         try:
             return f.read()
         finally: