]> git.phdru.name Git - bookmarks_db.git/commitdiff
Feat(Python3): Fix old style repr
authorOleg Broytman <phd@phdru.name>
Sat, 13 May 2017 16:20:21 +0000 (19:20 +0300)
committerOleg Broytman <phd@phdru.name>
Sat, 13 May 2017 17:12:02 +0000 (20:12 +0300)
subproc.py

index 7344a51bb4506f8f7f7bf32f6718a1299495b272..c7fd11629c52a526d2cef7b1e1eb63ede7565fac 100644 (file)
@@ -537,7 +537,7 @@ def record_trial(s):
     c.write(s)
     c.seek(0)
     r = c.read()
-    show = " start:\t %s\n end:\t %s\n" % (`s`, `r`)
+    show = " start:\t %s\n end:\t %s\n" % (repr(s), repr(r))
     if r != s:
         raise IOError("String distorted:\n%s" % show)
 
@@ -654,12 +654,12 @@ def test(p=0):
         print("\t...yep, it failed.")
     print('\tWrite, then read, two newline-teriminated lines, using readline:')
     p.write('first full line written\n'); p.write('second.\n')
-    print(`p.readline()`)
-    print(`p.readline()`)
+    print(repr(p.readline()))
+    print(repr(p.readline()))
     print('\tThree lines, last sans newline, read using combination:')
     p.write('first\n'); p.write('second\n'); p.write('third, (no cr)')
     print('\tFirst line via readline:')
-    print(`p.readline()`)
+    print(repr(p.readline()))
     print('\tRest via readPendingChars:')
     print(p.readPendingChars())
     print("\tStopping then continuing subprocess (verbose):")