Skip to content

Commit df18ab0

Browse files
author
Nathan Marz
committed
merge
2 parents c72758b + aaaa759 commit df18ab0

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
* Added reportError to BatchOutputCollector
99
* Added close method to OpaqueTransactionalSpout coordinator
1010
* Added "storm dev-zookeeper" command for launching a local zookeeper server. Useful for testing a one node Storm cluster locally. Zookeeper dir configured with "dev.zookeeper.path"
11+
* Use new style classes for Python multilang adapter
1112
* Bug fix: Fixed criticial bug in opaque transactional topologies that would lead to duplicate messages when using pipelining
1213
* Bug fix: Workers will now die properly if a ShellBolt subprocess dies (thanks tomo)
1314
* Bug fix: Hide the BasicOutputCollector#getOutputter method, since it shouldn't be a publicly available method.

src/multilang/py/storm.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def initComponent():
120120
sendpid(setupInfo['pidDir'])
121121
return [setupInfo['conf'], setupInfo['context']]
122122

123-
class Tuple:
123+
class Tuple(object):
124124
def __init__(self, id, component, stream, task, values):
125125
self.id = id
126126
self.component = component
@@ -133,7 +133,7 @@ def __repr__(self):
133133
self.__class__.__name__,
134134
''.join(' %s=%r' % (k, self.__dict__[k]) for k in sorted(self.__dict__.keys())))
135135

136-
class Bolt:
136+
class Bolt(object):
137137
def initialize(self, stormconf, context):
138138
pass
139139

@@ -152,7 +152,7 @@ def run(self):
152152
except Exception, e:
153153
log(traceback.format_exc(e))
154154

155-
class BasicBolt:
155+
class BasicBolt(object):
156156
def initialize(self, stormconf, context):
157157
pass
158158

@@ -174,7 +174,7 @@ def run(self):
174174
except Exception, e:
175175
log(traceback.format_exc(e))
176176

177-
class Spout:
177+
class Spout(object):
178178
def initialize(self, conf, context):
179179
pass
180180

0 commit comments

Comments
 (0)