Merge pull request #37 from NoMoKeTo/patch-1

How about a less confusing repr?
This commit is contained in:
Nils Schneider 2015-02-21 19:40:43 +01:00
commit 474a374cd6

View file

@ -24,7 +24,7 @@ class Node():
self.interfaces[mac] = Interface() self.interfaces[mac] = Interface()
def __repr__(self): def __repr__(self):
return self.macs.__repr__() return '<Node %s>' % self.macs.__repr__()
class Interface(): class Interface():
def __init__(self): def __init__(self):