Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #3 from stdk/master

Minor fix
  • Loading branch information...
commit 15e1c373b7dd583eb323d2a0e256072082af7e02 2 parents 4df81e0 + 366c732
@gornostal authored
Showing with 2 additions and 5 deletions.
  1. +2 −5 Modific.py
View
7 Modific.py
@@ -179,11 +179,8 @@ def is_enabled(self):
def run(self, edit):
vcs = get_vcs(self.get_working_dir())
- try:
- get_command_fn = getattr(self, '%s_diff_command' % vcs['name'])
- except AttributeError:
- return
- self.run_command(get_command_fn(self.view.file_name()), self.diff_done)
+ get_command = getattr(self, '{0}_diff_command'.format(vcs['name']),None)
+ if get_command: self.run_command(get_command(self.view.file_name()), self.diff_done)
def diff_done(self, result):
pass
Please sign in to comment.
Something went wrong with that request. Please try again.