Skip to content

Commit

Permalink
Convert old string substitutions to f-strings in term.py (#2864)
Browse files Browse the repository at this point in the history
* Replace outdated % substition strings in term.py, improves the performance when stringifying URIRef, BNode, and Literal nodes, also replace other outdated patterns in term.py with some modern equivelents for better performance and compatibility.

* Fixed a very old bug where a Generator Function (a yield function) didn't work as a BNode prefix generator, even though it should have. This was revieled by a newly failing test after the change to better string concatenation in the BNode constructor.

* fix docs generation issue for Generator type in new term.py changes.
  • Loading branch information
ashleysommer authored Jul 30, 2024
1 parent cb2c8d1 commit 5c6d942
Show file tree
Hide file tree
Showing 2 changed files with 83 additions and 83 deletions.
Loading

0 comments on commit 5c6d942

Please sign in to comment.