Remove old Python 2 compatibility code. Fixes #5700

This commit is contained in:
Cyril Jouve
2020-07-27 11:03:13 +01:00
committed by Dave Page
parent 7a22cff28c
commit f93cfe8c4c
197 changed files with 47 additions and 354 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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