Fix various indentation issues (tabs->spaces)

This commit is contained in:
luzpaz
2023-01-23 15:43:09 +00:00
committed by Uwe
parent 836835074e
commit 23af228b87
22 changed files with 633 additions and 633 deletions

View File

@@ -22,20 +22,20 @@ def temporary_exec(text, globals, locals):
def ensureDir(path,mode=0o777):
try:
os.makedirs(path,mode)
except OSError as err:
# https://docs.python.org/3/tutorial/errors.html
# raise an error unless it's about an already existing directory
print("Dir Exist")
#if errno != 17 or not os.path.isdir(path):
# raise
try:
os.makedirs(path,mode)
except OSError as err:
# https://docs.python.org/3/tutorial/errors.html
# raise an error unless it's about an already existing directory
print("Dir Exist")
#if errno != 17 or not os.path.isdir(path):
# raise
def convertMultilineString(str):
str = str.replace('\n','\\n')
str = str.replace('"','\\"')
return str
str = str.replace('\n','\\n')
str = str.replace('"','\\"')
return str
"Yet Another Python Templating Utility, Version 1.2"
import sys