mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Remove old Python 2 compatibility code. Fixes #5700
This commit is contained in:
@@ -12,7 +12,6 @@
|
||||
# This utility will allow us to change the copyright year information from
|
||||
# all the files present in FILE_EXTENSIONS variable at once
|
||||
|
||||
from __future__ import print_function
|
||||
import os
|
||||
import sys
|
||||
import re
|
||||
|
@@ -17,12 +17,8 @@ import os
|
||||
import platform
|
||||
import subprocess
|
||||
import sys
|
||||
try:
|
||||
from urllib.request import urlopen, urlretrieve
|
||||
from urllib.error import URLError
|
||||
except Exception:
|
||||
from urllib import urlopen, urlretrieve
|
||||
URLError = Exception
|
||||
from urllib.request import urlopen, urlretrieve
|
||||
from urllib.error import URLError
|
||||
import zipfile
|
||||
|
||||
|
||||
|
@@ -13,7 +13,6 @@
|
||||
# pgsql keywords from the code git paths mentioned in PG_CODES_URLS
|
||||
# Note that, PG_CODES_URLS may need to be changed manually per version change
|
||||
|
||||
from __future__ import print_function
|
||||
import re
|
||||
import requests
|
||||
import argparse
|
||||
|
Reference in New Issue
Block a user