Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

DiffCommand.get_user_command refactored.

  • Loading branch information...
commit d65e1f8df8e098d935b4b02734cd2f359b667c14 1 parent 15e1c37
@stdk stdk authored
Showing with 1 addition and 4 deletions.
  1. +1 −4 Modific.py
View
5 Modific.py
@@ -186,10 +186,7 @@ def diff_done(self, result):
pass
def get_user_command(self, vcs_name):
- try:
- return dict(settings.get('vcs'))[vcs_name]
- except:
- return False
+ return dict(settings.get('vcs')).get(vcs_name,False)
def git_diff_command(self, file_name):
return [self.get_user_command('git') or 'git', 'diff', '--no-color', '--', file_name]
Please sign in to comment.
Something went wrong with that request. Please try again.