Commit d5d5587b authored by Kipp Cannon's avatar Kipp Cannon

lsctables.py: don't override type

- even if the descriptor protocol documentation says to.
parent e95ebbaa
......@@ -249,7 +249,7 @@ class instrumentsproperty(object):
return u"%s," % _instruments[0]
return u",".join(_instruments)
def __get__(self, obj, type = None):
def __get__(self, obj, cls = None):
return self.get(getattr(obj, self.name))
def __set__(self, obj, instruments):
......@@ -272,7 +272,7 @@ class gpsproperty(object):
posinf = 0x7FFFFFFF, 0xFFFFFFFF
neginf = 0xFFFFFFFF, 0xFFFFFFFF
def __get__(self, obj, type = None):
def __get__(self, obj, cls = None):
s = getattr(obj, self.s_name)
ns = getattr(obj, self.ns_name)
if s is None and ns is None:
......@@ -331,7 +331,7 @@ class segmentproperty(object):
self.start = start_name
self.stop = stop_name
def __get__(self, obj, type = None):
def __get__(self, obj, cls = None):
start = getattr(obj, self.start)
stop = getattr(obj, self.stop)
if start is None and stop is None:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment