summaryrefslogtreecommitdiffstats
path: root/overlay.py
diff options
context:
space:
mode:
authorGunnar Wrobel <p@rdus.de>2007-09-11 09:34:48 +0000
committerGunnar Wrobel <p@rdus.de>2007-09-11 09:34:48 +0000
commit53ec348a897d392ae7123efa77d7d5cc3455e19e (patch)
treead2ee395e14c5bc45a93a57af0d4ab874b9e85b1 /overlay.py
parente4293652d5b2a80725e6f83843f91364e19ba199 (diff)
downloadlayman-53ec348a897d392ae7123efa77d7d5cc3455e19e.tar.gz
layman-53ec348a897d392ae7123efa77d7d5cc3455e19e.tar.bz2
layman-53ec348a897d392ae7123efa77d7d5cc3455e19e.zip
Layman v1.1
Diffstat (limited to 'overlay.py')
-rw-r--r--overlay.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/overlay.py b/overlay.py
index 38e9364..ffbf32f 100644
--- a/overlay.py
+++ b/overlay.py
@@ -24,7 +24,7 @@ __version__ = "$Id: overlay.py 273 2006-12-30 15:54:50Z wrobel $"
#
#-------------------------------------------------------------------------------
-import os, os.path, xml.dom.minidom
+import sys, codecs, os, os.path, xml.dom.minidom
from layman.overlays.bzr import BzrOverlay
from layman.overlays.darcs import DarcsOverlay
@@ -161,7 +161,7 @@ class Overlays:
try:
- out_file = open(path, 'w')
+ out_file = codecs.open(path, 'w', 'utf-8')
doc.writexml(out_file, '', ' ', '\n')
@@ -178,7 +178,6 @@ class Overlays:
>>> a.select('wrobel-stable').data['&src']
u'rsync://gunnarwrobel.de/wrobel-stable'
'''
-
if overlay in self.overlays.keys():
return self.overlays[overlay]