fix for python2

This commit is contained in:
Christopher Dunn 2014-09-10 17:26:46 -07:00
parent 83b43caf8e
commit 09228968ea

View File

@ -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,