From: dbs Date: Thu, 9 Jul 2009 03:19:31 +0000 (+0000) Subject: The introduction of codecs broke this script. Fun! X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=8dfad632f333fe5c1da1d6fe092b292f2c6aacbd;p=evergreen%2Fmasslnc.git The introduction of codecs broke this script. Fun! git-svn-id: svn://svn.open-ils.org/ILS/trunk@13551 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/build/i18n/scripts/merge_ils_events.py b/build/i18n/scripts/merge_ils_events.py index 4a91bbbec6..0e884551c7 100755 --- a/build/i18n/scripts/merge_ils_events.py +++ b/build/i18n/scripts/merge_ils_events.py @@ -1,5 +1,4 @@ #!/usr/bin/env python -import codecs import xml.dom.minidom import optparse @@ -77,7 +76,7 @@ def main(): merged = merge_events(options.master, options.localization) if options.outfile: - outfile = codecs.open(options.outfile, encoding='utf-8', mode='w') + outfile = open(options.outfile, 'w') if options.pretty: outfile.write(merged.toprettyxml(encoding='utf-8')) else: