changeset 24:edca5eaa34ca

some py3 Ignore-this: 852b7c3055eed25dc847ce016f90be29
author drewp@bigasterisk.com
date Wed, 22 May 2019 04:51:01 +0000
parents 92dea84af97a
children ab17449e5a8c
files rdfdb/patchsender.py rdfdb/rdflibpatch_literal.py rdfdb/syncedgraph.py
diffstat 3 files changed, 9 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/rdfdb/patchsender.py	Wed Apr 17 09:25:24 2019 +0000
+++ b/rdfdb/patchsender.py	Wed May 22 04:51:01 2019 +0000
@@ -1,3 +1,4 @@
+from __future__ import print_function
 import logging, time
 import cyclone.httpclient
 from twisted.internet import defer
@@ -47,12 +48,12 @@
             # other out. not working yet:
             if 0:
                 p = self._patchesToSend[0].concat(self._patchesToSend[1:])
-                print "concat down to"
-                print 'dels'
-                for q in p.delQuads: print q
-                print 'adds'
-                for q in p.addQuads: print q
-                print "----"
+                print("concat down to")
+                print('dels')
+                for q in p.delQuads: print(q)
+                print('adds')
+                for q in p.addQuads: print(q)
+                print("----")
             else:
                 p, sendResult = self._patchesToSend.pop(0)
         else:
--- a/rdfdb/rdflibpatch_literal.py	Wed Apr 17 09:25:24 2019 +0000
+++ b/rdfdb/rdflibpatch_literal.py	Wed May 22 04:51:01 2019 +0000
@@ -52,5 +52,5 @@
     def testNoDanglingPoint(self):
         vv = Literal("0.88", datatype=_XSD_DOUBLE)
         out = _literal_n3(vv, use_plain=True)
-        print out
+        print(out)
         self.assert_(out in ["8.8e-01", "0.88"], out)
--- a/rdfdb/syncedgraph.py	Wed Apr 17 09:25:24 2019 +0000
+++ b/rdfdb/syncedgraph.py	Wed May 22 04:51:01 2019 +0000
@@ -31,7 +31,7 @@
 from rdfdb.grapheditapi import GraphEditApi
 
 # everybody who writes literals needs to get this
-from rdflibpatch_literal import patch
+from rdfdb.rdflibpatch_literal import patch
 patch()