]> crepu.dev Git - config.git/blame - djavu-asus/elpa/elpy-20230803.1455/elpy/json_encoder.py
Configuracion en desarrollo PC pega
[config.git] / djavu-asus / elpa / elpy-20230803.1455 / elpy / json_encoder.py
CommitLineData
53e6db90
DC
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)