diff options
Diffstat (limited to 'subcmds/gitc_delete.py')
| -rw-r--r-- | subcmds/gitc_delete.py | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/subcmds/gitc_delete.py b/subcmds/gitc_delete.py index e5214b8e..df749469 100644 --- a/subcmds/gitc_delete.py +++ b/subcmds/gitc_delete.py | |||
| @@ -1,5 +1,3 @@ | |||
| 1 | # -*- coding:utf-8 -*- | ||
| 2 | # | ||
| 3 | # Copyright (C) 2015 The Android Open Source Project | 1 | # Copyright (C) 2015 The Android Open Source Project |
| 4 | # | 2 | # |
| 5 | # Licensed under the Apache License, Version 2.0 (the "License"); | 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| @@ -14,18 +12,14 @@ | |||
| 14 | # See the License for the specific language governing permissions and | 12 | # See the License for the specific language governing permissions and |
| 15 | # limitations under the License. | 13 | # limitations under the License. |
| 16 | 14 | ||
| 17 | from __future__ import print_function | ||
| 18 | import sys | 15 | import sys |
| 19 | 16 | ||
| 20 | from command import Command, GitcClientCommand | 17 | from command import Command, GitcClientCommand |
| 21 | import platform_utils | 18 | import platform_utils |
| 22 | 19 | ||
| 23 | from pyversion import is_python3 | ||
| 24 | if not is_python3(): | ||
| 25 | input = raw_input | ||
| 26 | 20 | ||
| 27 | class GitcDelete(Command, GitcClientCommand): | 21 | class GitcDelete(Command, GitcClientCommand): |
| 28 | common = True | 22 | COMMON = True |
| 29 | visible_everywhere = False | 23 | visible_everywhere = False |
| 30 | helpSummary = "Delete a GITC Client." | 24 | helpSummary = "Delete a GITC Client." |
| 31 | helpUsage = """ | 25 | helpUsage = """ |
| @@ -39,7 +33,7 @@ and all locally downloaded sources. | |||
| 39 | def _Options(self, p): | 33 | def _Options(self, p): |
| 40 | p.add_option('-f', '--force', | 34 | p.add_option('-f', '--force', |
| 41 | dest='force', action='store_true', | 35 | dest='force', action='store_true', |
| 42 | help='Force the deletion (no prompt).') | 36 | help='force the deletion (no prompt)') |
| 43 | 37 | ||
| 44 | def Execute(self, opt, args): | 38 | def Execute(self, opt, args): |
| 45 | if not opt.force: | 39 | if not opt.force: |
