Skip to content

Commit 0922896

Browse files
committed
fix for python2
1 parent 83b43ca commit 0922896

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

amalgamate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def write_to( self, output_path ):
4444
if output_dir and not os.path.isdir( output_dir ):
4545
os.makedirs( output_dir )
4646
f = open( output_path, "wb" )
47-
f.write( bytes(self.get_value(), 'UTF-8') )
47+
f.write( str.encode(self.get_value(), 'UTF-8') )
4848
f.close()
4949

5050
def amalgamate_source( source_top_dir=None,

0 commit comments

Comments
 (0)