From 705aa9ef7db0f4ec1c245b147c0ed91503df6c06 Mon Sep 17 00:00:00 2001
From: Vincent Pelletier <vincent@nexedi.com>
Date: Fri, 27 Aug 2010 20:48:38 +0000
Subject: [PATCH] There is no reason to hide last version in loadBefore.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2242 71dcc9de-d417-0410-9af5-da40c76e7ee4
---
 neo/client/app.py | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/neo/client/app.py b/neo/client/app.py
index e115e3b6..20b746ba 100644
--- a/neo/client/app.py
+++ b/neo/client/app.py
@@ -547,12 +547,7 @@ class Application(object):
         """Load an object for a given oid before tid committed."""
         # Do not try in cache as it manages only up-to-date object
         logging.debug('loading %s before %s', dump(oid), dump(tid))
-        data, start, end = self._load(oid, tid=tid)
-        if end is None:
-            # No previous version
-            return None
-        else:
-            return data, start, end
+        return self._load(oid, tid=tid)
 
 
     @profiler_decorator
-- 
2.30.9