mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-02-11 08:23:49 +00:00
9 lines
163 B
Python
9 lines
163 B
Python
def slurp(filespec):
|
|
with open(filespec) as x: f = x.read()
|
|
return f
|
|
|
|
|
|
def unslurp(filespec, msg):
|
|
with open(filespec, 'w') as x:
|
|
x.write(msg)
|