commit | 09228968ea44fb8350b02efce16a121ef99c49be | [log] [tgz] |
---|---|---|
author | Christopher Dunn <cdunn2001@gmail.com> | Wed Sep 10 17:26:46 2014 -0700 |
committer | Christopher Dunn <cdunn2001@gmail.com> | Wed Sep 10 17:26:46 2014 -0700 |
tree | a71c64f6617c3362d7481be6f9b2705ee49a1d87 | |
parent | 83b43caf8e80fc648b987b0be983eec28bbd026e [diff] [blame] |
fix for python2
diff --git a/amalgamate.py b/amalgamate.py index 5b9d220..9e3f08c 100644 --- a/amalgamate.py +++ b/amalgamate.py
@@ -44,7 +44,7 @@ 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,