first comit

This commit is contained in:
2024-02-23 10:30:02 +00:00
commit ddeb07d0ba
12482 changed files with 1857507 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
"""
This module provides compatibility with older versions of Django and Python
"""
try:
from urllib.parse import urlparse, parse_qs, quote_plus, urlencode
except ImportError: # Python 2
from urlparse import urlparse, parse_qs
from urllib import quote_plus, urlencode
try:
from urllib.request import Request, urlopen
except ImportError: # Python 2
from urllib2 import Request, urlopen
try:
from urllib.error import HTTPError
except ImportError: # Python 2
from urllib2 import HTTPError
try:
from urllib.error import URLError
except ImportError: # Python 2
from urllib2 import URLError