]> granicus.if.org Git - python/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:51 +0000 (18:26 -0400)
committerTerry Jan Reedy <tjreedy@udel.edu>
Sat, 22 Jun 2013 22:26:51 +0000 (18:26 -0400)
commitde3beb2617bd9bf56326502ea5964ca809bce017
tree608f0c535e561dadec602d44a7a24dcf4909acd6
parent9290dd14b02508a667165d2e98f3f99aad61764e
#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]