summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSol Jerome <sol.jerome@gmail.com>2011-04-27 15:11:26 -0500
committerSol Jerome <sol.jerome@gmail.com>2011-04-27 15:11:26 -0500
commit6045754bb05e0b01b3325b4f616029a96c2cbb56 (patch)
treea72ddd2bcac8ec81b03fa14eb66f2d8f32ac62e7
parent90a669edc4b5f25baf4ad0f30564bede357b991f (diff)
downloadbcfg2-6045754bb05e0b01b3325b4f616029a96c2cbb56.tar.gz
bcfg2-6045754bb05e0b01b3325b4f616029a96c2cbb56.tar.bz2
bcfg2-6045754bb05e0b01b3325b4f616029a96c2cbb56.zip
Fix some syntax issues
Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
-rw-r--r--src/lib/Server/Admin/Init.py4
-rw-r--r--src/lib/Server/Plugins/TGenshi.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/Server/Admin/Init.py b/src/lib/Server/Admin/Init.py
index 9fd408585..e69412a5e 100644
--- a/src/lib/Server/Admin/Init.py
+++ b/src/lib/Server/Admin/Init.py
@@ -138,7 +138,7 @@ def create_key(hostname, keypath, certpath, country, state, location):
keypath,
certpath))
subprocess.call((ccstr), shell=True)
- os.chmod(keypath, stat.S_IRUSR|stat.S_IWUSR) # 0600
+ os.chmod(keypath, stat.S_IRUSR | stat.S_IWUSR) # 0600
def create_conf(confpath, confdata):
@@ -156,7 +156,7 @@ def create_conf(confpath, confdata):
return
try:
open(confpath, "w").write(confdata)
- os.chmod(keypath, stat.S_IRUSR|stat.S_IWUSR) # 0600
+ os.chmod(keypath, stat.S_IRUSR | stat.S_IWUSR) # 0600
except Exception:
e = sys.exc_info()[1]
print("Error %s occured while trying to write configuration "
diff --git a/src/lib/Server/Plugins/TGenshi.py b/src/lib/Server/Plugins/TGenshi.py
index cd268e967..83b60c958 100644
--- a/src/lib/Server/Plugins/TGenshi.py
+++ b/src/lib/Server/Plugins/TGenshi.py
@@ -98,7 +98,7 @@ class TemplateFile:
entry.text = textdata
else:
if entry.get('encoding') == 'base64':
- # take care of case where file needs base64 encoding
+ # take care of case where file needs base64 encoding
entry.text = binascii.b2a_base64(textdata)
else:
entry.text = unicode(textdata, self.encoding)