Commit 5d37234ac310e75229e9fba2dc2fa11b87dc16f3

Authored by Christian Herdtweck
1 parent ffa7ec25

msodde: minor fixes

Showing 1 changed file with 2 additions and 2 deletions
oletools/msodde.py
@@ -769,8 +769,9 @@ def process_csv(filepath): @@ -769,8 +769,9 @@ def process_csv(filepath):
769 chars the same way that excel does. Tested to some extend in unittests. 769 chars the same way that excel does. Tested to some extend in unittests.
770 770
771 This can only find DDE-links, no other "suspicious" constructs (yet). 771 This can only find DDE-links, no other "suspicious" constructs (yet).
772 - """  
773 772
  773 + Cannot deal with unicode files yet (need more than just use uopen()).
  774 + """
774 results = [] 775 results = []
775 if sys.version_info.major <= 2: 776 if sys.version_info.major <= 2:
776 open_arg = dict(mode='rb') 777 open_arg = dict(mode='rb')
@@ -807,7 +808,6 @@ def process_csv(filepath): @@ -807,7 +808,6 @@ def process_csv(filepath):
807 808
808 def process_csv_dialect(file_handle, delimiters): 809 def process_csv_dialect(file_handle, delimiters):
809 """ helper for process_csv: process with a specific csv dialect """ 810 """ helper for process_csv: process with a specific csv dialect """
810 -  
811 # determine dialect = delimiter chars, quote chars, ... 811 # determine dialect = delimiter chars, quote chars, ...
812 dialect = csv.Sniffer().sniff(file_handle.read(CSV_SMALL_THRESH), 812 dialect = csv.Sniffer().sniff(file_handle.read(CSV_SMALL_THRESH),
813 delimiters=delimiters) 813 delimiters=delimiters)