Skip to content

Commit

Permalink
always use json.decoder, Python2 is no more
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeni committed Nov 19, 2024
1 parent 09d1b81 commit b535d9e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions apypie/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@
import errno
import glob
import json
try:
from json.decoder import JSONDecodeError # type: ignore
except ImportError:
JSONDecodeError = ValueError # type: ignore
from json.decoder import JSONDecodeError # type: ignore
import os
from urllib.parse import urljoin # type: ignore
import requests
Expand Down

0 comments on commit b535d9e

Please sign in to comment.