Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Delta Between Two Patch Sets: third_party/libadblockplus_common/delete_dir.py

Issue 29674555: Issue 6273 - Apply eyeo python code style (Closed)
Left Patch Set: Addressed Vasily's comments Created Jan. 22, 2018, 7:11 a.m.
Right Patch Set: Removed sys.exit() where return code is always 0 Created Jan. 29, 2018, 12:50 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « third_party/libadblockplus_android/prepare_build_tools.py ('k') | third_party/libadblockplus_common/subproc.py » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 import os 1 import os
2 import sys 2 import sys
3 import shutil 3 import shutil
4 4
5 5
6 def main(argv): 6 def main(argv):
7 directory = argv[0] 7 directory = argv[0]
8 if os.path.exists(directory): 8 if os.path.exists(directory):
9 shutil.rmtree(directory) 9 shutil.rmtree(directory)
10 10
11 return 0
12
13 11
14 if __name__ == '__main__': 12 if __name__ == '__main__':
15 try: 13 try:
16 sys.exit(main(sys.argv[1:])) 14 main(sys.argv[1:])
17 except KeyboardInterrupt: 15 except KeyboardInterrupt:
18 sys.exit('interrupted') 16 sys.exit('interrupted')
LEFTRIGHT

Powered by Google App Engine
This is Rietveld