Permalink
Browse files

PEP-8 formatting

  • Loading branch information...
1 parent 4efdd3b commit b8f7c396230a4e2a6c860fc31fa73fa7c6d0fef6 @fogleman fogleman committed Dec 14, 2012
Showing with 5 additions and 5 deletions.
  1. +1 −1 git_gutter.py
  2. +4 −4 git_gutter_handler.py
View
@@ -20,7 +20,7 @@ def lines_to_regions(self, lines):
regions = []
for line in lines:
position = self.view.text_point(line - 1, 0)
- region = sublime.Region(position,position)
+ region = sublime.Region(position, position)
regions.append(region)
return regions
View
@@ -46,7 +46,7 @@ def update_git_file(self):
'--git-dir=' + self.git_dir,
'--work-tree=' + self.git_tree,
'show',
- 'HEAD:' + self.git_path
+ 'HEAD:' + self.git_path,
]
try:
proc = subprocess.Popen(args, stdout=subprocess.PIPE,
@@ -83,9 +83,9 @@ def process_diff(self, diff_str):
else:
line_end = line_start
if kind == 'c':
- modified += range(line_start,line_end + 1)
+ modified += range(line_start, line_end + 1)
elif kind == 'a':
- inserted += range(line_start,line_end + 1)
+ inserted += range(line_start, line_end + 1)
elif kind == 'd':
if line == 1:
deleted.append(line_start)
@@ -100,7 +100,7 @@ def diff(self):
args = [
'diff',
self.git_temp_file.name,
- self.buf_temp_file.name
+ self.buf_temp_file.name,
]
proc = subprocess.Popen(args, stdout=subprocess.PIPE,
stderr=subprocess.STDOUT)

0 comments on commit b8f7c39

Please sign in to comment.