22# @Author: Lime
33# @Date: 2013-10-28 13:39:48
44# @Last Modified by: Lime
5- # @Last Modified time: 2016-03-03 20:51:17
5+ # @Last Modified time: 2016-03-06 10:23:52
66
77import os
88import sys
@@ -148,7 +148,7 @@ def get_user():
148148
149149 user = getpass .getuser ()
150150 output , error = getOutputError (
151- 'cd {} && git status' .format (get_dir_path ()))
151+ 'cd {0 } && git status' .format (get_dir_path ()))
152152
153153 if not error :
154154 output , error = getOutputError ('git config --get user.name' )
@@ -611,9 +611,9 @@ def update_automatically(self, view, what):
611611 break
612612
613613 for r in '.^$*+?{}[]()' :
614- line_head = line_head .replace (r , '\\ {}' .format (r ))
614+ line_head = line_head .replace (r , '\\ {0 }' .format (r ))
615615
616- line_pattern = '{}.*\n ' .format (line_head )
616+ line_pattern = '{0 }.*\n ' .format (line_head )
617617 break
618618
619619 if line_pattern is not None :
@@ -633,7 +633,7 @@ def update_automatically(self, view, what):
633633 elif what == FILE_PATH :
634634 strings = get_file_path (view .file_name ())
635635
636- strings = '{}{}{ }' .format (
636+ strings = '{0}{1}{2 }' .format (
637637 ' ' * (index - space_start ), strings , line_tail )
638638
639639 region = sublime .Region (int (a ), int (b ))
0 commit comments