]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
#18151, part 2: Silence debug build resource warning for each file opened by
authorTerry Jan Reedy <tjreedy@udel.edu>
Sat, 22 Jun 2013 22:26:38 +0000 (18:26 -0400)
committerTerry Jan Reedy <tjreedy@udel.edu>
Sat, 22 Jun 2013 22:26:38 +0000 (18:26 -0400)
commit223a22b6ababadefa831c634f3094e24d0e36cbe
tree1192a29da078b7507969797930240cbc708b2795
parent10c74d28e44050577b59dc26be31fbe257c9c665
#18151, part 2: Silence debug build resource warning for each file opened by
'Find in files' by replacing 'open with implicit close' by 'with open' in
GrepDialog method grep_it. Streamline code with enumerate(), direct file
iteration, and output tweak. Add test for this method, including output format.
Lib/idlelib/GrepDialog.py
Lib/idlelib/idle_test/test_grep.py [new file with mode: 0644]