summaryrefslogtreecommitdiff
path: root/examples/custom_eval.py
diff options
context:
space:
mode:
authorGunnar Aastrand Grimnes <gromgull@gmail.com>2018-10-30 14:21:41 +0100
committerGunnar Aastrand Grimnes <gromgull@gmail.com>2018-10-30 15:38:42 +0100
commit785e37932e71a02ab8c31257694060f550ff72a6 (patch)
tree43bc2158ce60168cebe15a0f88ea2aeddb30520d /examples/custom_eval.py
parentfac8b840627013e1b9bbe76bd75c8e9d5d7b4cdf (diff)
downloadrdflib-785e37932e71a02ab8c31257694060f550ff72a6.tar.gz
a slightly opinionated autopep8 run
opinions is mainly: no to long lines, but not at any cost. notation3.py crashses autopep :D Also rdflib/__init__.py gets completely broken
Diffstat (limited to 'examples/custom_eval.py')
-rw-r--r--examples/custom_eval.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/custom_eval.py b/examples/custom_eval.py
index bad8ff1c..69cd173a 100644
--- a/examples/custom_eval.py
+++ b/examples/custom_eval.py
@@ -49,7 +49,8 @@ def customEval(ctx, part):
raise NotImplementedError()
-if __name__=='__main__':
+
+if __name__ == '__main__':
# add function directly, normally we would use setuptools and entry_points
rdflib.plugins.sparql.CUSTOM_EVALS['exampleEval'] = customEval