summaryrefslogtreecommitdiff
path: root/rdflib/plugins/serializers/xmlwriter.py
Commit message (Collapse)AuthorAgeFilesLines
* refactor: eliminate inheritance from object (#2339)Iwan Aucamp2023-04-101-1/+1
| | | | | This change removes the redundant inheritance from `object` (i.e. `class Foo(object): pass`) that is no longer needed in Python 3 and is a relic from Python 2.
* fix sonarcloud-reported bug in xmlwriter, add test (#1951)Graham Higgins2022-05-251-1/+1
| | | | | | | | | | | | | | | sonarcloud detected a bug: “Remove 1 unexpected arguments; 'join' expects 1 positional arguments.” in xmlwriter: ```py return ":".join(pre, uri[len(ns) :]) ``` Added containing brackets apparently omitted by original author. ```py return ":".join([pre, uri[len(ns) :]]) ``` Added test for surety, took the opportunity of adding two tests to take coverage of `xmlwriter` to 100%.
* [pre-commit.ci] auto fixes from pre-commit.com hookspre-commit-ci[bot]2022-04-151-1/+1
| | | | for more information, see https://pre-commit.ci
* style fixes onlynicholascar2021-12-161-2/+2
|
* ignore Flake Error W505 as soon it won't be considered an errornicholascar2021-12-071-2/+2
|
* re-run blackAshley Sommer2020-08-271-2/+2
|
* changes for flake8Nicholas Car2020-05-171-3/+3
|
* blacked all python filesNicholas Car2020-05-161-11/+8
|
* namespace.py serializers/rdfxml.py stric qnamesTom Gillespie2020-03-121-1/+1
| | | | | | | | | The rdfxml serializer relied on namespace.py compute_qname to enforce qname correctness. Chagnging split characteristics to support n3 prefixes broke that assumption. This commit is a first pass at fixing the behvior. It may be worth renaming functions to make it clear that the current 'compute_qname' function is no longer actually computing a qname but a n3 prefix (or something like that).
* converted all base serialisers and parsersGunnar Aastrand Grimnes2017-01-301-1/+1
|
* Add test for issue 250. Add fix.Graham Higgins2013-01-261-1/+2
|
* apply autopep8 standards.Graham Higgins2013-01-111-15/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | $ flake8 rdflib --exclude=pyRdfa,host,extras,transform,rdfs,pyMicrodata rdflib/graph.py:192: W801 redefinition of unused 'BytesIO' from line 189 rdflib/graph.py:194: W402 'BytesIO' imported but unused rdflib/graph.py:680:80: E501 line too long (80 > 79 characters) rdflib/graph.py:682:80: E501 line too long (80 > 79 characters) rdflib/graph.py:686:80: E501 line too long (83 > 79 characters) rdflib/graph.py:690:80: E501 line too long (83 > 79 characters) rdflib/graph.py:692:80: E501 line too long (83 > 79 characters) rdflib/graph.py:695:80: E501 line too long (83 > 79 characters) rdflib/graph.py:698:80: E501 line too long (83 > 79 characters) rdflib/parser.py:21: W801 redefinition of unused 'BytesIO' from line 19 rdflib/compat.py:12: W801 redefinition of unused 'defaultdict' from line 10 rdflib/py3compat.py:10: W801 redefinition of unused 'wraps' from line 7 rdflib/py3compat.py:81: W806 redefinition of function 'b' from line 44 rdflib/py3compat.py:87: W806 redefinition of function 'format_doctest_out' from line 50 rdflib/py3compat.py:97: W806 redefinition of function 'type_cmp' from line 61 rdflib/term.py:54: W801 redefinition of unused 'md5' from line 52 rdflib/store.py:73: W801 redefinition of unused 'BytesIO' from line 71 rdflib/query.py:10: W801 redefinition of unused 'BytesIO' from line 8 rdflib/__init__.py:73: W402 'plugin' imported but unused rdflib/__init__.py:74: W402 'query' imported but unused rdflib/util.py:43: W806 redefinition of function 'sign' from line 50 rdflib/plugins/parsers/hturtle.py:25: W801 redefinition of unused 'html5lib' from line 24 rdflib/plugins/parsers/ntriples.py:141: W402 'BytesIO' imported but unused rdflib/plugins/parsers/structureddata.py:23: W801 redefinition of unused 'html5lib' from line 22
* misc minor cleanupsGunnar Aastrand Grimnes2012-12-051-2/+2
|
* fixed various bugs with literal handlings in serializersgromgull2012-07-201-1/+5
|
* Uncomment __all__, tests do all passGraham Higgins2012-01-161-1/+1
|
* __all__ together nowGraham Higgins2012-01-141-0/+1
|
* Update issue 120eikeon2010-02-131-0/+102
Moving parsers and serializer implementations into rdflib.plugins package