Skip to content

Commit

Permalink
Missing import of codecs
Browse files Browse the repository at this point in the history
  • Loading branch information
kemayo committed Jul 27, 2016
1 parent 0f81c17 commit 443448b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion git/annotate.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import tempfile
import re
import os
import codecs

import sublime
import sublime_plugin
Expand Down Expand Up @@ -66,7 +67,7 @@ def run(self, view):
root = git_root(self.get_working_dir())
repo_file = os.path.relpath(self.view.file_name(), root).replace('\\', '/') # always unix
self.run_command(['git', 'show', 'HEAD:{0}'.format(repo_file)], show_status=False, no_save=True, callback=self.compare_tmp)

def compare_tmp(self, result, stdout=None):
with open(self.buffer_tmp, 'wb') as f:
contents = self.get_view_contents()
Expand Down

0 comments on commit 443448b

Please sign in to comment.