@@ -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:47:17: FURB129 [*] Instead of calling `readlines()`, iterate over fil
213213 |
214214 = help : Remove ` readlines()`
215215
216- ℹ Unsafe fix
216+ ℹ Safe fix
21721744 44 | import builtins
21821845 45 |
21921946 46 | with builtins .open (" FURB129.py" ) as f :
@@ -232,7 +232,7 @@ FURB129.py:54:17: FURB129 [*] Instead of calling `readlines()`, iterate over fil
232232 |
233233 = help : Remove ` readlines()`
234234
235- ℹ Unsafe fix
235+ ℹ Safe fix
23623651 51 | from builtins import open as o
23723752 52 |
23823853 53 | with o (" FURB129.py" ) as f :
@@ -252,7 +252,7 @@ FURB129.py:93:17: FURB129 [*] Instead of calling `readlines()`, iterate over fil
252252 |
253253 = help : Remove ` readlines()`
254254
255- ℹ Unsafe fix
255+ ℹ Safe fix
25625690 90 |
25725791 91 | # https :// github.com/astral-sh/ruff/issues/18231
25825892 92 | with open (" furb129.py" ) as f :
@@ -270,7 +270,7 @@ FURB129.py:97:23: FURB129 [*] Instead of calling `readlines()`, iterate over fil
270270 |
271271 = help : Remove ` readlines()`
272272
273- ℹ Unsafe fix
273+ ℹ Safe fix
27427494 94 | pass
27527595 95 |
27627696 96 | with open (" furb129.py" ) as f :
@@ -290,7 +290,7 @@ FURB129.py:101:17: FURB129 [*] Instead of calling `readlines()`, iterate over fi
290290 |
291291 = help : Remove ` readlines()`
292292
293- ℹ Unsafe fix
293+ ℹ Safe fix
29429498 98 |
29529599 99 |
296296100 100 | with open (" furb129.py" ) as f :
@@ -310,7 +310,7 @@ FURB129.py:103:16: FURB129 [*] Instead of calling `readlines()`, iterate over fi
310310 |
311311 = help : Remove ` readlines()`
312312
313- ℹ Unsafe fix
313+ ℹ Safe fix
314314100 100 | with open (" furb129.py" ) as f :
315315101 101 | for line in (((f ))).readlines ():
316316102 102 | pass
@@ -328,7 +328,7 @@ FURB129.py:107:29: FURB129 [*] Instead of calling `readlines()`, iterate over fi
328328 |
329329 = help : Remove ` readlines()`
330330
331- ℹ Unsafe fix
331+ ℹ Safe fix
332332104 104 | pass
333333105 105 |
334334106 106 | # Test case for issue #17683 (missing space before keyword )
0 commit comments