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 b0500f5 commit 8d17bb2
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 8d17bb2

Please sign in to comment.