diff options
author | Kostis Anagnostopoulos <ankostis@gmail.com> | 2016-10-22 12:47:45 +0200 |
---|---|---|
committer | Kostis Anagnostopoulos <ankostis@gmail.com> | 2016-10-22 12:47:45 +0200 |
commit | a25365fea0ea3b92ba96cc281facd308311def1e (patch) | |
tree | 5653a9923aebfc8b53407f8d1ef0d9d6497da081 /git/util.py | |
parent | 76ac61a2b4bb10c8434a7d6fc798b115b4b7934d (diff) | |
parent | caa0ea7a0893fe90ea043843d4e6ad407126d7b8 (diff) | |
download | gitpython-a25365fea0ea3b92ba96cc281facd308311def1e.tar.gz |
Merge remote-tracking branch 'origin/master' into exp_git_dir
Diffstat (limited to 'git/util.py')
-rw-r--r-- | git/util.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/git/util.py b/git/util.py index c3c8e562..1e0d3eb4 100644 --- a/git/util.py +++ b/git/util.py @@ -387,7 +387,7 @@ class RemoteProgress(object): sub_lines = line.split('\r') failed_lines = list() for sline in sub_lines: - # find esacpe characters and cut them away - regex will not work with + # find escape characters and cut them away - regex will not work with # them as they are non-ascii. As git might expect a tty, it will send them last_valid_index = None for i, c in enumerate(reversed(sline)): @@ -682,7 +682,7 @@ class IndexFileSHA1Writer(object): """Wrapper around a file-like object that remembers the SHA1 of the data written to it. It will write a sha when the stream is closed - or if the asked for explicitly usign write_sha. + or if the asked for explicitly using write_sha. Only useful to the indexfile @@ -812,7 +812,7 @@ class BlockingLockFile(LockFile): super(BlockingLockFile, self)._obtain_lock() except IOError: # synity check: if the directory leading to the lockfile is not - # readable anymore, raise an execption + # readable anymore, raise an exception curtime = time.time() if not osp.isdir(osp.dirname(self._lock_file_path())): msg = "Directory containing the lockfile %r was not readable anymore after waiting %g seconds" % ( @@ -856,7 +856,7 @@ class IterableList(list): self._prefix = prefix def __contains__(self, attr): - # first try identy match for performance + # first try identity match for performance rval = list.__contains__(self, attr) if rval: return rval |