From 4630433b79d7c92f513808e45dba2a5f6f7b3dad Mon Sep 17 00:00:00 2001
From: Christoph Groth <christoph.groth@cea.fr>
Date: Fri, 14 Feb 2014 10:27:27 +0100
Subject: [PATCH] make builders pickleable

---
 kwant/builder.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/kwant/builder.py b/kwant/builder.py
index 74153e1..b399847 100644
--- a/kwant/builder.py
+++ b/kwant/builder.py
@@ -504,7 +504,8 @@ class ModesLead(Lead):
 
 # A marker, meaning for hopping (i, j): this value is given by the Hermitian
 # conjugate the value of the hopping (j, i).  Used by Builder and System.
-Other = type('Other', (object,), {'__repr__': lambda s: 'Other'})()
+class Other(object):
+    pass
 
 
 def edges(seq):
-- 
GitLab