10.12., 9:00 - 11:00: Due to updates GitLab may be unavailable for some minutes between 09:00 and 11:00.

Commit 825c4c2a authored by di68kap's avatar di68kap

corrections for windows compatibility

parent 506cd427
......@@ -168,7 +168,8 @@ def escape_re(s) -> str:
def is_filename(s) -> bool:
"""Tries to guess whether string ``s`` is a file name."""
return s.find('\n') < 0 and s[:1] != " " and s[-1:] != " " \
and s.find('*') < 0 and s.find('?') < 0
and all(s.find(ch) < 0 for ch in '*?"<>|')
# and s.find('*') < 0 and s.find('?') < 0
def logfile_basename(filename_or_text, function_or_class_or_instance) -> str:
......
......@@ -151,4 +151,4 @@ KOMMENTARZEILEN = { /[ \t]*\n?[ \t]*/ COMMENT__ } # echte Kommentarzeilen
DATEI_ENDE = !/./
NIEMALS = /(?!.)/
DUMMY = "EBNF-Grammatik an dieser Stelle noch nicht definiert!"
\ No newline at end of file
DUMMY = "EBNF-Grammatik an dieser Stelle noch nicht definiert!"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment