@@ -152,17 +152,17 @@ Here's how to expose an object of your choice as a zeroservice::
152
152
class Cooler:
153
153
""" Various convenience methods to make things cooler. """
154
154
155
- def add_man(self, sentence):
156
- """ End a sentence with ", man!" to make it sound cooler, and return the result. """
157
- return sentence + ", man!"
158
-
159
- def add_42(self, n):
160
- """ Add 42 to an integer argument to make it cooler, and return the result. """
161
- return n + 42
162
-
163
- def boat(self, sentence):
164
- """ Replace a sentence with "I'm on a boat!", and return that, because it's cooler. """
165
- return "I'm on a boat!"
155
+ def add_man(self, sentence):
156
+ """ End a sentence with ", man!" to make it sound cooler, and return the result. """
157
+ return sentence + ", man!"
158
+
159
+ def add_42(self, n):
160
+ """ Add 42 to an integer argument to make it cooler, and return the result. """
161
+ return n + 42
162
+
163
+ def boat(self, sentence):
164
+ """ Replace a sentence with "I'm on a boat!", and return that, because it's cooler. """
165
+ return "I'm on a boat!"
166
166
167
167
import zerorpc
168
168
@@ -178,9 +178,9 @@ Now, in another terminal, let's try connecting to our awesome zeroservice::
178
178
179
179
$ zerorpc -j tcp://:4242 add_42 1
180
180
43
181
- $ zerorpc tcp://:4242 add_man " I own a mint-condition Wolkswagen Golf"
181
+ $ zerorpc tcp://:4242 add_man ' I own a mint-condition Wolkswagen Golf'
182
182
"I own a mint-condition Wolkswagen Gold, man!"
183
- $ zerorpc tcp://:4242 boat " I own a mint-condition Wolkswagen Gold, man!"
183
+ $ zerorpc tcp://:4242 boat ' I own a mint-condition Wolkswagen Gold, man!'
184
184
"I'm on a boat!"
185
185
186
186
0 commit comments