Skip to content

Commit

Permalink
do not import pkg_resources in prettytable (it is unused !)
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthieuDartiailh committed Nov 9, 2020
1 parent d822b32 commit 6881af7
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions pyvisa/thirdparty/prettytable.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@
import textwrap
import unicodedata

import pkg_resources

__version__ = "0.7.3.dev.43cdb910a6fbee396e1fceb76a7775fa7314ee1d"
py3k = sys.version_info[0] >= 3
if py3k:
Expand All @@ -51,15 +49,16 @@
itermap = map
iterzip = zip
uni_chr = chr
from html.parser import HTMLParser
from html import escape
from html.parser import HTMLParser
else:
itermap = itertools.imap
iterzip = itertools.izip
uni_chr = unichr # noqa: F821
from HTMLParser import HTMLParser
from cgi import escape

from HTMLParser import HTMLParser

# hrule styles
FRAME = 0
ALL = 1
Expand Down

0 comments on commit 6881af7

Please sign in to comment.