From 2540b994f44ccc29acf4298e24d46caf19a7dfd7 Mon Sep 17 00:00:00 2001 From: Antoine Millet Date: Mon, 31 Jan 2011 16:41:50 +0100 Subject: [PATCH] Fixed bug with __exit__ method on BytesBuffer. --- sjrpc/utils/datastructures.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sjrpc/utils/datastructures.py b/sjrpc/utils/datastructures.py index 0715d17..31d6fee 100644 --- a/sjrpc/utils/datastructures.py +++ b/sjrpc/utils/datastructures.py @@ -67,5 +67,5 @@ class BytesBuffer(object): def __enter__(self): return self._lock.__enter__() - def __exit__(self): - return self._lock.__exit__() + def __exit__(self, exc_type, exc_value, traceback): + return self._lock.__exit__(exc_type, exc_value, traceback) -- GitLab