encoding
This commit is contained in:
parent
20e2b0e3d7
commit
8a3924afa4
7
aws.py
7
aws.py
|
|
@ -1,7 +1,4 @@
|
||||||
|
|
||||||
# This Python file uses the following encoding: windows-1252
|
|
||||||
#
|
|
||||||
|
|
||||||
import datetime, pysftp, codecs, re, time, json, traceback, csv, os
|
import datetime, pysftp, codecs, re, time, json, traceback, csv, os
|
||||||
import pandas as pd
|
import pandas as pd
|
||||||
import boto3
|
import boto3
|
||||||
|
|
@ -197,12 +194,12 @@ def d(s,end=''):
|
||||||
elif DEBUG: print(s)
|
elif DEBUG: print(s)
|
||||||
|
|
||||||
def clean_funny(str):
|
def clean_funny(str):
|
||||||
if str and str.encode('utf8') == ' ': return ''
|
if str and str.encode('utf8') == '<EFBFBD>': return ''
|
||||||
return str
|
return str
|
||||||
|
|
||||||
def clean_funny2(str):
|
def clean_funny2(str):
|
||||||
if str and str == '\xa0': return ''
|
if str and str == '\xa0': return ''
|
||||||
if str and str == ' ': return ''
|
if str and str == '<EFBFBD>': return ''
|
||||||
return str
|
return str
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue