]> crepu.dev Git - config.git/blame_incremental - djavu-asus/elpa/elpy-20230803.1455/elpy/json_encoder.py
Se agregan las configuraciones del tarro
[config.git] / djavu-asus / elpa / elpy-20230803.1455 / elpy / json_encoder.py
... / ...
CommitLineData
1import json
2
3from elpy.jedibackend import JEDISUP18
4if JEDISUP18:
5 import pathlib
6
7
8class JSONEncoder(json.JSONEncoder):
9 def default(self, o):
10 if JEDISUP18:
11 if isinstance(o, pathlib.Path):
12 return str(o)
13 return super().default(o)