17 lines
352 B
Plaintext
17 lines
352 B
Plaintext
# TEST DATA
|
|
|
|
application FreeBSD
|
|
|
|
# abstract class
|
|
class Method:
|
|
def __init__(self, buffer, **vargs):
|
|
self.buffer = buffer
|
|
for (varg, vval) in vargs.iteritems():
|
|
setattr(self, varg, vval)
|
|
|
|
def name(self):
|
|
return ""
|
|
|
|
def execute(self):
|
|
raise Exception, "Unimplemented Method: %s" % (self.name())
|