Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #4 from stdk/feature

DiffCommand.get_user_command refactored.
  • Loading branch information...
commit f213b28c2f31d148194eb8d9fb4bdbbf899e9364 2 parents 15e1c37 + d65e1f8
@gornostal 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.