Skip to content

Commit

Permalink
chore(python): remove py2 import (#5054)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rotzbua committed Mar 23, 2024
1 parent 9688356 commit 0ac066a
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions tests/test_pretty_print.py
Expand Up @@ -30,15 +30,10 @@

import string, sys, re, os, hashlib, subprocess, time, platform, html, base64

from urllib.error import URLError
from urllib.request import urlopen
from urllib.parse import urlencode

try:
from urllib.error import URLError
from urllib.request import urlopen
from urllib.parse import urlencode
except:
from urllib2 import URLError
from urllib2 import urlopen
from urllib import urlencode

def tryread(filename):
data = None
Expand Down

0 comments on commit 0ac066a

Please sign in to comment.