mirror of
https://github.com/triqs/dft_tools
synced 2024-12-21 20:03:41 +01:00
Fixed import of 'json'
It seems that not all distributions of python come with a 'simplejson' module. Now, if this module is not found the import falls back to module 'json'.
This commit is contained in:
parent
53de9b3962
commit
2346b43950
@ -3,7 +3,10 @@ import itertools as it
|
||||
import numpy as np
|
||||
|
||||
# 'simplejson' is supposed to be faster than 'json' in stdlib.
|
||||
import simplejson as json
|
||||
try:
|
||||
import simplejson as json
|
||||
except ImportError:
|
||||
import json
|
||||
|
||||
class Projector:
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user