Commit b844b306d1c0888d396b31045ef7039d24428ea2

Authored by Christian Herdtweck
1 parent f32ee920

msodde: remove unused / unnecessary lines

making pylint happy, part 2
Showing 1 changed file with 0 additions and 4 deletions
oletools/msodde.py
@@ -51,7 +51,6 @@ from __future__ import print_function @@ -51,7 +51,6 @@ from __future__ import print_function
51 51
52 import argparse 52 import argparse
53 import os 53 import os
54 -from os.path import abspath, dirname  
55 import sys 54 import sys
56 import re 55 import re
57 import csv 56 import csv
@@ -64,7 +63,6 @@ from oletools import rtfobj @@ -64,7 +63,6 @@ from oletools import rtfobj
64 from oletools.ppt_record_parser import is_ppt 63 from oletools.ppt_record_parser import is_ppt
65 from oletools import crypto 64 from oletools import crypto
66 from oletools.common.log_helper import log_helper 65 from oletools.common.log_helper import log_helper
67 -from oletools.common.errors import UnsupportedEncryptionError  
68 66
69 # ----------------------------------------------------------------------------- 67 # -----------------------------------------------------------------------------
70 # CHANGELOG: 68 # CHANGELOG:
@@ -978,8 +976,6 @@ def process_maybe_encrypted(filepath, passwords=None, crypto_nesting=0, @@ -978,8 +976,6 @@ def process_maybe_encrypted(filepath, passwords=None, crypto_nesting=0,
978 logger.info('Analyze decrypted file') 976 logger.info('Analyze decrypted file')
979 result = process_maybe_encrypted(decrypted_file, passwords, 977 result = process_maybe_encrypted(decrypted_file, passwords,
980 crypto_nesting+1, **kwargs) 978 crypto_nesting+1, **kwargs)
981 - except Exception:  
982 - raise  
983 finally: # clean up 979 finally: # clean up
984 try: # (maybe file was not yet created) 980 try: # (maybe file was not yet created)
985 os.unlink(decrypted_file) 981 os.unlink(decrypted_file)