examples: fix rpc examples. __init__ method was wrongly named "__init" causing proxy and handler class to not be initialized.

This commit is contained in:
Thomas Hansen 2012-01-31 12:38:41 -06:00
parent 79f1aa0e1b
commit 5a4df56836
2 changed files with 4 additions and 4 deletions

View file

@ -16,7 +16,7 @@ class Thermostat(Endpoint):
def FQN(self):
return 'thermostat'
def __init(self, initial_temperature):
def __init__(self, initial_temperature):
self._temperature = initial_temperature
self._event = threading.Event()
@ -50,4 +50,4 @@ def main():
if __name__ == '__main__':
main()

View file

@ -15,7 +15,7 @@ class Thermostat(Endpoint):
def FQN(self):
return 'thermostat'
def __init(self, initial_temperature):
def __init__(self, initial_temperature):
self._temperature = initial_temperature
self._event = threading.Event()
@ -49,4 +49,4 @@ def main():
if __name__ == '__main__':
main()