Files
sthen 69bf544c5c add patch with 2to3 changes rather than running during build
clean up test target ("do-test: fake" doesn't work, at least with
ports_privsep, maybe at all)
2025-02-18 21:11:05 +00:00

28 lines
508 B
Plaintext

apply 2to3 and additional fixes
Index: testmodule.py
--- testmodule.py.orig
+++ testmodule.py
@@ -1,13 +1,13 @@
import rcsparse
-import md5
f=rcsparse.rcsfile('test,v')
-print f.head
-print f.branch
+print(f.head)
+print(f.branch)
s=f.symbols
-print s['RELENG_4']
-print s.items()
+print(s['RELENG_4'])
+print(list(s.items()))
r=f.revs
-i=r.items()
-print i
-print f.getlog(f.sym2rev('RELENG_4'))
+i=list(r.items())
+print(i)
+print(f.getlog(f.sym2rev('RELENG_4')).decode('ascii'))
+print('1.1' in r)