File: __init__.py

package info (click to toggle)
python-rdflib-jsonld 0.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,428 kB
  • sloc: python: 1,601; makefile: 132
file content (15 lines) | stat: -rw-r--r-- 400 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
from rdflib import plugin
from rdflib import serializer
from rdflib import parser
assert plugin
assert serializer
assert parser
try:
    # This can be replaced by "import json" as soon as
    # 2to3 stops rewriting it as "from . import json"
    import imp
    json = imp.load_module('json', *imp.find_module('json'))
    assert json
except ImportError:
    import simplejson as json
    assert json