mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-10-15 15:16:47 +02:00
simple py3 changes
This commit is contained in:
@@ -1,11 +1,12 @@
|
||||
from __future__ import print_function
|
||||
import glob
|
||||
import os.path
|
||||
for path in glob.glob( '*.json' ):
|
||||
text = file(path,'rt').read()
|
||||
target = os.path.splitext(path)[0] + '.expected'
|
||||
if os.path.exists( target ):
|
||||
print 'skipping:', target
|
||||
print('skipping:', target)
|
||||
else:
|
||||
print 'creating:', target
|
||||
print('creating:', target)
|
||||
file(target,'wt').write(text)
|
||||
|
||||
|
Reference in New Issue
Block a user