summaryrefslogtreecommitdiff
path: root/Mailman/Cgi/edithtml.py
diff options
context:
space:
mode:
authorbwarsaw2007-01-05 06:47:39 +0000
committerbwarsaw2007-01-05 06:47:39 +0000
commit9af2533eb89e48683c049c5007737f7e94bbcdc1 (patch)
tree54853dcccee453eae60916af4e612b3004cc736f /Mailman/Cgi/edithtml.py
parentd7da90ebc8aeee180ba470c002f7e37ef7df1089 (diff)
downloadmailman-9af2533eb89e48683c049c5007737f7e94bbcdc1.tar.gz
mailman-9af2533eb89e48683c049c5007737f7e94bbcdc1.tar.zst
mailman-9af2533eb89e48683c049c5007737f7e94bbcdc1.zip
Diffstat (limited to 'Mailman/Cgi/edithtml.py')
-rw-r--r--Mailman/Cgi/edithtml.py11
1 files changed, 2 insertions, 9 deletions
diff --git a/Mailman/Cgi/edithtml.py b/Mailman/Cgi/edithtml.py
index 6083bfdb9..bac719b6d 100644
--- a/Mailman/Cgi/edithtml.py
+++ b/Mailman/Cgi/edithtml.py
@@ -1,4 +1,4 @@
-# Copyright (C) 1998-2006 by the Free Software Foundation, Inc.
+# Copyright (C) 1998-2007 by the Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
@@ -165,14 +165,7 @@ def ChangeHTML(mlist, cgi_info, template_name, doc):
code = re.sub(r'<([/]?script.*?)>', r'&lt;\1&gt;', code)
langdir = os.path.join(mlist.fullpath(), mlist.preferred_language)
# Make sure the directory exists
- omask = os.umask(0)
- try:
- try:
- os.mkdir(langdir, 02775)
- except OSError, e:
- if e.errno <> errno.EEXIST: raise
- finally:
- os.umask(omask)
+ Utils.makedirs(langdir)
fp = open(os.path.join(langdir, template_name), 'w')
try:
fp.write(code)