Commit cc548da1 authored by Daniel Brown's avatar Daniel Brown
Browse files

Fixing python 2 errors with isolator1 component and list copying

parent 51d0dbcd
Pipeline #1609 passed with stage
in 17 seconds
...@@ -3,7 +3,7 @@ from __future__ import division ...@@ -3,7 +3,7 @@ from __future__ import division
from __future__ import print_function from __future__ import print_function
from __future__ import unicode_literals from __future__ import unicode_literals
__version__ = "1.0.13" __version__ = "1.0.14"
# This flag is used to switch on the gui features in pkat at import time # This flag is used to switch on the gui features in pkat at import time
USE_GUI = False USE_GUI = False
......
...@@ -1068,7 +1068,8 @@ class isolator1(Component): ...@@ -1068,7 +1068,8 @@ class isolator1(Component):
return rtn return rtn
def getQGraphicsItem(self):
raise NotImplemented()
class lens(Component): class lens(Component):
......
...@@ -86,7 +86,8 @@ class putter(object): ...@@ -86,7 +86,8 @@ class putter(object):
self.__owner = weakref.ref(newOwner) self.__owner = weakref.ref(newOwner)
def clearPuts(self): def clearPuts(self):
for _ in self.putees.copy(): import copy
for _ in copy.copy(self.putees):
_.put(None) _.put(None)
def register(self, toput): def register(self, toput):
......
Supports Markdown
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