@@ -19,13 +19,13 class Data: | |||
|
19 | 19 | ''' |
|
20 | 20 | raise ValueError, "This class has not been implemented" |
|
21 | 21 | |
|
22 | def copy(self, obj=None): | |
|
22 | def copy(self, objIn=None): | |
|
23 | 23 | |
|
24 | if obj == None: | |
|
24 | if objIn == None: | |
|
25 | 25 | return copy.deepcopy(self) |
|
26 | 26 | |
|
27 |
for key in |
|
|
28 | obj.__dict__[key] = self.__dict__[key] | |
|
27 | for key in objIn.__dict__.keys(): | |
|
28 | self.__dict__[key] = objIn.__dict__[key] | |
|
29 | 29 | |
|
30 | 30 | def deepcopy(self): |
|
31 | 31 |
General Comments 0
You need to be logged in to leave comments.
Login now