From cb310316bf87693fbca834f90136321da9586d9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=2E=20David=20Ib=C3=A1=C3=B1ez?= Date: Mon, 3 Nov 2014 18:53:38 +0100 Subject: [PATCH] docs: fix build errors in the blame chapter --- pygit2/__init__.py | 1 + pygit2/repository.py | 9 ++++----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pygit2/__init__.py b/pygit2/__init__.py index ada4aaf..2674063 100644 --- a/pygit2/__init__.py +++ b/pygit2/__init__.py @@ -32,6 +32,7 @@ from __future__ import absolute_import from _pygit2 import * # High level API +from .blame import Blame, BlameHunk from .config import Config from .credentials import * from .errors import check_error diff --git a/pygit2/repository.py b/pygit2/repository.py index 239af12..d9c1eed 100644 --- a/pygit2/repository.py +++ b/pygit2/repository.py @@ -442,11 +442,10 @@ class Repository(_Repository): # # blame # - def blame(self, path, flags=None, min_match_characters=None, newest_commit=None, oldest_commit=None, min_line=None, max_line=None): - """blame(path, [flags, min_match_characters, newest_commit, oldest_commit,\n" - min_line, max_line]) -> Blame - - Get the blame for a single file. + def blame(self, path, flags=None, min_match_characters=None, + newest_commit=None, oldest_commit=None, min_line=None, + max_line=None): + """Return a Blame object for a single file. Arguments: