mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-02-25 07:41:07 +01:00
fix for python2
This commit is contained in:
parent
83b43caf8e
commit
09228968ea
@ -44,7 +44,7 @@ class AmalgamationFile:
|
||||
if output_dir and not os.path.isdir( output_dir ):
|
||||
os.makedirs( output_dir )
|
||||
f = open( output_path, "wb" )
|
||||
f.write( bytes(self.get_value(), 'UTF-8') )
|
||||
f.write( str.encode(self.get_value(), 'UTF-8') )
|
||||
f.close()
|
||||
|
||||
def amalgamate_source( source_top_dir=None,
|
||||
|
Loading…
x
Reference in New Issue
Block a user