Skip to content

Commit b18f808

Browse files
Avoid using all as variable name
1 parent cace546 commit b18f808

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/igd.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,8 +253,8 @@ We can do the same using a shell command *tail -f /var/log/cron |grep anacron*
253253
::
254254

255255
>>> jobtext = 'anacron'
256-
>>> all = (line for line in open('/var/log/cron', 'r') )
257-
>>> job = ( line for line in all if line.find(jobtext) != -1)
256+
>>> all_lines = (line for line in open('/var/log/cron', 'r') )
257+
>>> job = ( line for line in all_lines if line.find(jobtext) != -1)
258258
>>> text = next(job)
259259
>>> text
260260
"May 6 12:17:15 dhcp193-104 anacron[23052]: Job `cron.daily' terminated\n"

0 commit comments

Comments
 (0)