Commit graph

12 commits

Author SHA1 Message Date
Nikita Karamov
24c297cfe7
Remove six dependency 2023-01-23 07:26:43 +01:00
Nikita Karamov
783632fb24
Use simpler super() 2023-01-23 06:51:50 +01:00
Nikita Karamov
de3d930421
Remove redundant open() flags 2023-01-23 06:51:43 +01:00
Nikita Karamov
c3b305cc5d
Remove unneeded six stuff 2023-01-23 06:51:29 +01:00
Nikita Karamov
1cc86cc3c8
Use str.format() 2023-01-23 06:51:29 +01:00
Nikita Karamov
d1fd32fd5b
Do not explicitly extend object 2023-01-23 06:51:29 +01:00
Nikita Karamov
1ceeaf11e6
Remove __future__ imports 2023-01-23 06:51:18 +01:00
Nikita Karamov
a284dec2f9
Remove "coding" pragma 2023-01-23 06:51:06 +01:00
Niels Thykier
b8a071f995
scour: Fix another variant of the crash from #260 (#264)
Signed-off-by: Niels Thykier <niels@thykier.net>
2020-11-22 15:00:43 +01:00
Niels Thykier
9a1286132f
remapNamespacePrefix: Preserve prefix of attribute names (#255)
Preserve prefix of attribute names when copying them over to the new
node.  This fixes an unintentional rewrite of `xml:space` to `space`
that also caused scour to strip whitespace that should have been
preserved.

Closes: #239
Signed-off-by: Niels Thykier <niels@thykier.net>
2020-06-10 20:18:21 +02:00
Niels Thykier
5be6b03d7c
Serialization: Avoid creating a single-use dict in each call to make_well_formed
Signed-off-by: Niels Thykier <niels@thykier.net>
2020-06-07 18:07:30 +00:00
Niels Thykier
a15acb3e4e
Rename testX.py to test_X.py to make py.test work out of the box (#181)
This rename makes py.test/py.test-3 find the test suite out of the
box.  Example command lines:

       # Running the test suite (optionally include "-v")
       $ py.test-3
       # Running the test suite with coverage enabled (and branch
       # coverage).
       $ py.test-3 --cov=scour --cov-report=html --cov-branch

Signed-off-by: Niels Thykier <niels@thykier.net>
2020-05-17 19:55:24 +02:00
Renamed from testscour.py (Browse further)