Commit 77245bb
Remove the 'U' argument to open() as the 'U' mode is deprecated in Python 3. In Python 3, universal new lines [1] are enabled by default, and they are controlled by the 'newline' [2] argument to open().
Ref:
[1] https://docs.python.org/3/glossary.html#term-universal-newlines
[2] https://docs.python.org/3/library/functions.html#open-newline-parameter
PiperOrigin-RevId: 3183859121 parent 3fcd660 commit 77245bb
File tree
1 file changed
+1
-1
lines changed- neural_structured_learning/examples/preprocess/cora
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
136 | | - | |
| 136 | + | |
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
| |||
0 commit comments