diff --git a/amalgamate.py b/amalgamate.py index 5b9d220..9e3f08c 100644 --- a/amalgamate.py +++ b/amalgamate.py @@ -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,