From 15b9129ec639112e94ea96b6a395ad9b149515d1 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Sun, 11 Oct 2009 19:07:03 +0200 Subject: lazymixin system now supports per-attribute baking, it is up to the class whether it bakes more. This also leads to more efficient use of memory as values are only cached and set when required - the baking system does not require an own tracking variable anymore, and values are only to be cached once - then python will natively find the cache without involving any additional overhead. This works by using __getattr__ instead of __get_attribute__ which would always be called --- lib/git/head.py | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'lib/git/head.py') diff --git a/lib/git/head.py b/lib/git/head.py index f4e94637..42dfd735 100644 --- a/lib/git/head.py +++ b/lib/git/head.py @@ -27,20 +27,6 @@ class Head(base.Ref): '1c09f116cbc2cb4100fb6935bb162daa4723f455' """ - def __init__(self, path, commit): - """ - Initialize a newly instanced Head - - ``path`` - is the path to the head ref, relative to the .git directory, i.e. - refs/heads/master - - `commit` - is the Commit object that the head points to - """ - super(Head, self).__init__(name, commit) - - @property def commit(self): """ -- cgit v1.2.1