You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
438 B
Python
29 lines
438 B
Python
"""
|
|
I am a plain old module with no interesting dependencies or import machinery
|
|
fiddlery.
|
|
"""
|
|
|
|
import math
|
|
|
|
|
|
class MyError(Exception):
|
|
pass
|
|
|
|
|
|
def get_sentinel_value():
|
|
# Some proof we're even talking to the mitogen-test Docker image
|
|
f = open('/etc/sentinel', 'rb')
|
|
try:
|
|
value = f.read().decode()
|
|
finally:
|
|
f.close()
|
|
return value
|
|
|
|
|
|
def add(x, y):
|
|
return x + y
|
|
|
|
|
|
def pow(x, y):
|
|
return x ** y
|