[gobject-introspection: 1/2] Drop deprecated and redundant universal newline mode
- From: Christoph Reiter <creiter src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection: 1/2] Drop deprecated and redundant universal newline mode
- Date: Sun, 9 Dec 2018 20:05:24 +0000 (UTC)
commit d84347ecb4d4e8d5bba4a91d339fec113d52ee6e
Author: Tomasz Miąsko <tomasz miasko gmail com>
Date: Sun Dec 9 00:00:00 2018 +0000
Drop deprecated and redundant universal newline mode
misc/update-gtkdoc-tests.py | 2 +-
tests/warn/warningtester.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/misc/update-gtkdoc-tests.py b/misc/update-gtkdoc-tests.py
index 22098430..566d6ac0 100644
--- a/misc/update-gtkdoc-tests.py
+++ b/misc/update-gtkdoc-tests.py
@@ -191,7 +191,7 @@ if __name__ == '__main__':
writer = GtkDocCommentBlockWriter(indent=True)
logger.enable_warnings((ERROR, FATAL))
- with io.open(path, 'rU') as f:
+ with io.open(path, 'r') as f:
lines = f.readlines()
chunks = []
diff --git a/tests/warn/warningtester.py b/tests/warn/warningtester.py
index 8f441879..afc78ce0 100644
--- a/tests/warn/warningtester.py
+++ b/tests/warn/warningtester.py
@@ -78,7 +78,7 @@ def _diff(a, b):
def _extract_expected(filename):
- fd = open(filename, 'rU')
+ fd = open(filename, 'r')
data = fd.read()
fd.close()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]