NatLibFi / Skosify

Validate, convert and improve SKOS vocabularies
http://skosify.readthedocs.io/
MIT License
55 stars 8 forks source link

Use open() instead of file() to read SPARQL query files #76

Closed osma closed 4 years ago

osma commented 4 years ago

This fixes a Python 3 incompatibility. When a configuration file states that a CONSTRUCT or UPDATE SPARQL query should be read from a file (e.g. update_query=@add-types.ru), the code was using the Python 2 builtin function file() to read it. This builtin function was removed in Python 3. open() works in both Python 2 and 3.

codecov-io commented 4 years ago

Codecov Report

Merging #76 into master will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #76   +/-   ##
=======================================
  Coverage   58.65%   58.65%           
=======================================
  Files          10       10           
  Lines         924      924           
=======================================
  Hits          542      542           
  Misses        382      382           

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update cc44847...9275acf. Read the comment docs.