Skip to content

Commit

Permalink
PEP-8 formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
fogleman committed Dec 14, 2012
1 parent 4efdd3b commit b8f7c39
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion git_gutter.py
Expand Up @@ -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

Expand Down
8 changes: 4 additions & 4 deletions git_gutter_handler.py
Expand Up @@ -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,
Expand Down Expand Up @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit b8f7c39

Please sign in to comment.