summaryrefslogtreecommitdiff
path: root/git/cmd.py
diff options
context:
space:
mode:
authorAntoine Musso <hashar@free.fr>2014-11-16 20:51:04 +0100
committerAntoine Musso <hashar@free.fr>2014-11-16 20:51:21 +0100
commitbe34ec23c48d6d5d8fd2ef4491981f6fb4bab8e6 (patch)
tree7d0124054760421d95a6f675d8e843e42a72ad82 /git/cmd.py
parentf5d11b750ecc982541d1f936488248f0b42d75d3 (diff)
downloadgitpython-be34ec23c48d6d5d8fd2ef4491981f6fb4bab8e6.tar.gz
pep8 linting (blank lines expectations)
E301 expected 1 blank line, found 0 E302 expected 2 blank lines, found 1 E303 too many blank lines (n)
Diffstat (limited to 'git/cmd.py')
-rw-r--r--git/cmd.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/git/cmd.py b/git/cmd.py
index c655cdc8..272ff32a 100644
--- a/git/cmd.py
+++ b/git/cmd.py
@@ -23,11 +23,13 @@ execute_kwargs = ('istream', 'with_keep_cwd', 'with_extended_output',
__all__ = ('Git', )
+
def dashify(string):
return string.replace('_', '-')
class Git(LazyMixin):
+
"""
The Git class manages communication with the Git binary.
@@ -59,8 +61,8 @@ class Git(LazyMixin):
_git_exec_env_var = "GIT_PYTHON_GIT_EXECUTABLE"
GIT_PYTHON_GIT_EXECUTABLE = os.environ.get(_git_exec_env_var, git_exec_name)
-
class AutoInterrupt(object):
+
"""Kill/Interrupt the stored process instance once this instance goes out of scope. It is
used to prevent processes piling up in case iterators stop reading.
Besides all attributes are wired through to the contained process object.
@@ -114,6 +116,7 @@ class Git(LazyMixin):
# END auto interrupt
class CatFileContentStream(object):
+
"""Object representing a sized read-only stream returning the contents of
an object.
It behaves like a stream, but counts the data read and simulates an empty
@@ -213,7 +216,6 @@ class Git(LazyMixin):
self._stream.read(bytes_left + 1)
# END handle incomplete read
-
def __init__(self, working_dir=None):
"""Initialize this instance with:
@@ -247,7 +249,6 @@ class Git(LazyMixin):
super(Git, self)._set_cache_(attr)
#END handle version info
-
@property
def working_dir(self):
""":return: Git directory we are working on"""