1
0
mirror of https://github.com/jonathanhogg/scopething synced 2025-07-14 03:02:09 +01:00

Checkpoint of work in progress

This commit is contained in:
Jonathan Hogg
2016-10-11 16:54:56 +01:00
parent d5075de09f
commit ed42994868
4 changed files with 278 additions and 13 deletions

View File

@ -5,9 +5,7 @@ from streams import SerialStream
class Scope(object):
def __init__(self, stream=None):
if stream is None:
stream = SerialStream()
def __init__(self, stream):
self._stream = stream
async def reset(self):
@ -23,7 +21,7 @@ class Scope(object):
async def main():
s = Scope()
s = Scope(SerialStream())
await s.reset()
print(await s.get_revision())