@@ -12,7 +12,7 @@ FURB129.py:7:18: FURB129 [*] Instead of calling `readlines()`, iterate over file
1212 |
1313 = help : Remove ` readlines()`
1414
15- ℹ Unsafe fix
15+ ℹ Safe fix
16164 4 |
17175 5 | # Errors
18186 6 | with open (" FURB129.py" ) as f :
@@ -33,7 +33,7 @@ FURB129.py:9:35: FURB129 [*] Instead of calling `readlines()`, iterate over file
3333 |
3434 = help : Remove ` readlines()`
3535
36- ℹ Unsafe fix
36+ ℹ Safe fix
37376 6 | with open (" FURB129.py" ) as f :
38387 7 | for _line in f .readlines ():
39398 8 | pass
@@ -53,7 +53,7 @@ FURB129.py:10:35: FURB129 [*] Instead of calling `readlines()`, iterate over fil
5353 |
5454 = help : Remove ` readlines()`
5555
56- ℹ Unsafe fix
56+ ℹ Safe fix
57577 7 | for _line in f .readlines ():
58588 8 | pass
59599 9 | a = [line .lower () for line in f .readlines ()]
@@ -74,7 +74,7 @@ FURB129.py:11:49: FURB129 [*] Instead of calling `readlines()`, iterate over fil
7474 |
7575 = help : Remove ` readlines()`
7676
77- ℹ Unsafe fix
77+ ℹ Safe fix
78788 8 | pass
79799 9 | a = [line .lower () for line in f .readlines ()]
808010 10 | b = {line.upper() for line in f.readlines()}
@@ -93,7 +93,7 @@ FURB129.py:14:18: FURB129 [*] Instead of calling `readlines()`, iterate over fil
9393 |
9494 = help : Remove ` readlines()`
9595
96- ℹ Unsafe fix
96+ ℹ Safe fix
979711 11 | c = {line.lower(): line .upper () for line in f .readlines ()}
989812 12 |
999913 13 | with Path (" FURB129.py" ).open () as f :
@@ -113,7 +113,7 @@ FURB129.py:17:14: FURB129 [*] Instead of calling `readlines()`, iterate over fil
113113 |
114114 = help : Remove ` readlines()`
115115
116- ℹ Unsafe fix
116+ ℹ Safe fix
11711714 14 | for _line in f .readlines ():
11811815 15 | pass
11911916 16 |
@@ -133,7 +133,7 @@ FURB129.py:20:14: FURB129 [*] Instead of calling `readlines()`, iterate over fil
133133 |
134134 = help : Remove ` readlines()`
135135
136- ℹ Unsafe fix
136+ ℹ Safe fix
13713717 17 | for _line in open (" FURB129.py" ).readlines ():
13813818 18 | pass
13913919 19 |
@@ -154,7 +154,7 @@ FURB129.py:26:18: FURB129 [*] Instead of calling `readlines()`, iterate over fil
154154 |
155155 = help : Remove ` readlines()`
156156
157- ℹ Unsafe fix
157+ ℹ Safe fix
15815823 23 |
15915924 24 | def func ():
16016025 25 | f = Path (" FURB129.py" ).open ()
@@ -173,7 +173,7 @@ FURB129.py:32:18: FURB129 [*] Instead of calling `readlines()`, iterate over fil
173173 |
174174 = help : Remove ` readlines()`
175175
176- ℹ Unsafe fix
176+ ℹ Safe fix
17717729 29 |
17817830 30 |
17917931 31 | def func (f : io .BytesIO ):
@@ -194,7 +194,7 @@ FURB129.py:38:22: FURB129 [*] Instead of calling `readlines()`, iterate over fil
194194 |
195195 = help : Remove ` readlines()`
196196
197- ℹ Unsafe fix
197+ ℹ Safe fix
19819835 35 |
19919936 36 | def func ():
20020037 37 | with (open (" FURB129.py" ) as f , foo as bar ):
@@ -213,7 +213,7 @@ FURB129.py:48:17: FURB129 [*] Instead of calling `readlines()`, iterate over fil
213213 |
214214 = help : Remove ` readlines()`
215215
216- ℹ Unsafe fix
216+ ℹ Safe fix
21721745 45 |
21821846 46 |
21921947 47 | with builtins .open (" FURB129.py" ) as f :
@@ -232,7 +232,7 @@ FURB129.py:56:17: FURB129 [*] Instead of calling `readlines()`, iterate over fil
232232 |
233233 = help : Remove ` readlines()`
234234
235- ℹ Unsafe fix
235+ ℹ Safe fix
23623653 53 |
23723754 54 |
23823855 55 | with o (" FURB129.py" ) as f :
0 commit comments