comparison babel/messages/frontend.py @ 206:3be04778442f

Fix for bug introduced in [208]. Closes #37.
author cmlenz
date Wed, 04 Jul 2007 06:52:03 +0000
parents d3c272492053
children a2325a4ef8ee
comparison
equal deleted inserted replaced
205:aefe4ac123a2 206:3be04778442f
519 try: 519 try:
520 catalog = read_po(infile, locale=locale, domain=domain) 520 catalog = read_po(infile, locale=locale, domain=domain)
521 finally: 521 finally:
522 infile.close() 522 infile.close()
523 523
524 catalog.update(template, self.no_fuzzy_matching, self.previous) 524 catalog.update(template, self.no_fuzzy_matching)
525 525
526 tmpname = os.path.join(os.path.dirname(filename), 526 tmpname = os.path.join(os.path.dirname(filename),
527 tempfile.gettempprefix() + 527 tempfile.gettempprefix() +
528 os.path.basename(filename)) 528 os.path.basename(filename))
529 tmpfile = open(tmpname, 'w') 529 tmpfile = open(tmpname, 'w')
953 try: 953 try:
954 catalog = read_po(infile, locale=locale, domain=domain) 954 catalog = read_po(infile, locale=locale, domain=domain)
955 finally: 955 finally:
956 infile.close() 956 infile.close()
957 957
958 catalog.update(template, options.no_fuzzy_matching, 958 catalog.update(template, options.no_fuzzy_matching)
959 options.previous)
960 959
961 tmpname = os.path.join(os.path.dirname(filename), 960 tmpname = os.path.join(os.path.dirname(filename),
962 tempfile.gettempprefix() + 961 tempfile.gettempprefix() +
963 os.path.basename(filename)) 962 os.path.basename(filename))
964 tmpfile = open(tmpname, 'w') 963 tmpfile = open(tmpname, 'w')
Copyright (C) 2012-2017 Edgewall Software