Greg Ward
abc2f960d4
Allow comment characters (#) to be escaped:
...
- did away with 'comment_re' option -- it's just not that simple anymore
- heavily revised the main logic in 'readline()' to accomodate this
Beefed up 'warn()': 'line' can be list or tuple, and 'msg' is
automatically converted to a string.
1999-08-10 20:09:38 +00:00
Greg Ward
4e5a7c7056
'warn()' method now takes an optional line number.
1999-04-15 17:50:19 +00:00
Greg Ward
91c488c1fc
Replaced the last attempt at an "unreadline" with one that actually
...
works on non-seekable file-like objects, such as URLs. (Oops.)
1999-03-29 18:01:49 +00:00
Greg Ward
787451b65f
Added 'linestart' array and 'unreadline()' method (makes parsing a lot easier).
1999-03-26 21:48:59 +00:00
Greg Ward
782cdfe9f3
Changes to allow passing an open file to the constructor (to support
...
ProcessHierarchy's changes to support reading from a remote URL in
ProcessDatabase).
1999-03-23 14:00:06 +00:00
Greg Ward
db75afe6e5
Added collapse_ws option.
1999-03-08 21:46:11 +00:00
Greg Ward
f6cdcd509d
Added 'warn' method.
1999-01-18 17:08:16 +00:00
Greg Ward
d1dc47558c
Added: mems.lib.text_file: provides TextFile class for parsing text
...
files with (optional) comment stripping, blank line skipping, whitespace
removal, and line joining with trailing backslashes.
1999-01-13 16:12:04 +00:00