11 Commits

Author SHA1 Message Date
Jens Kutilek
f1a75bacb2
Handle string input to Program.fromAssembly() (#3038)
* Add tests for fromAssembly() output (#3036)
* Handle string input to fromAssembly() (Fixes #3036)
* Fixups suggested by @anthrotype
* Add some more typing annotations
* Program.assembly always returns List[str] now
* Add annotation for bytecode
* Move code from setter to fromAssembly
* Remove property
* Fix attribute names
2023-03-14 14:51:16 +01:00
Nikolaus Waxweiler
d584daa8fd Blacken code 2022-12-13 11:26:36 +00:00
Khaled Hosny
000bf81700 Default to "\n" for newlinestr instead of None
If newlinestr is None, os.linesep is used, bu it is the third millennium
and we don’t need or want different line endings per-platform.
2021-07-30 04:12:33 +02:00
Just van Rossum
5fc65d7168
Misc py23 cleanups (#2243)
* Replaced all from ...py23 import * with explicit name imports, or removed completely when possible.
* Replaced tounicode() with tostr()
* Changed all BytesIO ans StringIO imports to from io import ..., replaced all UnicodeIO with StringIO.
* Replaced all unichr() with chr()
* Misc minor tweaks and fixes
2021-03-29 11:45:58 +02:00
Nikolaus Waxweiler
01328213c7 Remove __future__ imports 2019-08-09 12:20:13 +01:00
Jens Kutilek
5d3b4eb4c0 Tell XMLWriter what newline character to use 2017-01-24 16:23:06 +01:00
Jens Kutilek
22391398b0 Fix merge conflict 2017-01-24 15:46:40 +01:00
Jens Kutilek
828a58aacb Better fix for checking line endings, use UnicodeIO instead of BytesIO 2017-01-24 15:30:32 +01:00
Jens Kutilek
c9bdda2bc3 Ignore line endings 2017-01-24 14:05:18 +01:00
Jens Kutilek
15b2f465b9 Add test for assembly indentation 2017-01-24 13:50:24 +01:00
Cosimo Lupo
adaf708ae0
[Tests] convert ttProgram doctests into ttProgram_test.py 2017-01-17 13:39:37 +00:00