- over.core.misc.console now accepts globals as well as locals to offer a complete environment

- new over.core.file.count_lines
- over.core.types.ndict can now export keys with dashes in them same way over.core.app.Main does it (by translating them to underscores)
This commit is contained in:
Overwatch 2015-01-14 13:14:34 +01:00
parent 043ad86808
commit 402a05f86d
5 changed files with 32 additions and 4 deletions

View file

@ -37,7 +37,7 @@ def lexical_join(words, oxford=False):
elif l == 2:
return '%s and %s' %(str(words[0]), str(words[1]))
else:
return '%s%s and %s' %(', '.join(str(w) for w in words[:-1]), ',' if oxford_comma else '', str(words[-1]))
return '%s%s and %s' %(', '.join(str(w) for w in words[:-1]), ',' if oxford else '', str(words[-1]))
# --------------------------------------------------