This commit is contained in:
Peter Howell 2025-08-29 12:29:06 -07:00
parent 20e2b0e3d7
commit 8a3924afa4
1 changed files with 2 additions and 5 deletions

7
aws.py
View File

@ -1,7 +1,4 @@
# This Python file uses the following encoding: windows-1252
#
import datetime, pysftp, codecs, re, time, json, traceback, csv, os
import pandas as pd
import boto3
@ -197,12 +194,12 @@ def d(s,end=''):
elif DEBUG: print(s)
def clean_funny(str):
if str and str.encode('utf8') == ' ': return ''
if str and str.encode('utf8') == '<EFBFBD>': return ''
return str
def clean_funny2(str):
if str and str == '\xa0': return ''
if str and str == ' ': return ''
if str and str == '<EFBFBD>': return ''
return str