diff bin/clientdemo @ 1858:7772cc48e016

reformat all python Ignore-this: 1135b78893f8b3d31badddda7f45678f
author drewp@bigasterisk.com
date Tue, 21 May 2019 23:56:12 +0000
parents 6fa4288da8a6
children f066d6e874db
line wrap: on
line diff
--- a/bin/clientdemo	Tue May 21 23:55:35 2019 +0000
+++ b/bin/clientdemo	Tue May 21 23:56:12 2019 +0000
@@ -16,12 +16,13 @@
     g = SyncedGraph(networking.rdfdb.url, "clientdemo")
 
     from light9.Submaster import PersistentSubmaster
-    sub = PersistentSubmaster(graph=g, uri=URIRef("http://light9.bigasterisk.com/sub/bcools"))
+    sub = PersistentSubmaster(
+        graph=g, uri=URIRef("http://light9.bigasterisk.com/sub/bcools"))
 
     #get sub to show its updating name, then push that all the way into KC gui so we can see just names refresh in there
 
+    L9 = Namespace("http://light9.bigasterisk.com/")
 
-    L9 = Namespace("http://light9.bigasterisk.com/")
     def updateDemoValue():
         v = list(g.objects(L9['demo'], L9['is']))
         print "demo value is %r" % v
@@ -29,8 +30,10 @@
     g.addHandler(updateDemoValue)
 
     def adj():
-        g.patch(Patch(addQuads=[(L9['demo'], L9['is'], Literal(os.getpid()),
-                                 L9['clientdemo'])],
-                      delQuads=[]))
+        g.patch(
+            Patch(addQuads=[(L9['demo'], L9['is'], Literal(os.getpid()),
+                             L9['clientdemo'])],
+                  delQuads=[]))
+
     reactor.callLater(2, adj)
     reactor.run()