Commit 2dd314cdfd5a0a4d876dd57e33ae364cace75b35
1 parent
0d0d7853
pylint-ify 1: limit imports
Showing
1 changed file
with
5 additions
and
2 deletions
oletools/olevba.py
| ... | ... | @@ -211,7 +211,6 @@ import math |
| 211 | 211 | import zipfile |
| 212 | 212 | import re |
| 213 | 213 | import optparse |
| 214 | -import os.path | |
| 215 | 214 | import binascii |
| 216 | 215 | import base64 |
| 217 | 216 | import zlib |
| ... | ... | @@ -239,7 +238,11 @@ except ImportError: |
| 239 | 238 | import thirdparty.olefile as olefile |
| 240 | 239 | from thirdparty.prettytable import prettytable |
| 241 | 240 | from thirdparty.xglob import xglob, PathNotFoundException |
| 242 | -from thirdparty.pyparsing.pyparsing import * | |
| 241 | +from thirdparty.pyparsing.pyparsing import \ | |
| 242 | + CaselessKeyword, CaselessLiteral, Combine, Forward, Literal, \ | |
| 243 | + Optional, QuotedString,Regex, Suppress, Word, WordStart, \ | |
| 244 | + alphanums, alphas, hexnums,nums, opAssoc, srange, \ | |
| 245 | + infixNotation | |
| 243 | 246 | |
| 244 | 247 | # monkeypatch email to fix issue #32: |
| 245 | 248 | # allow header lines without ":" | ... | ... |