Added additional tests

This commit is contained in:
jrconlin
2011-01-06 21:17:19 -08:00
parent bb99854b18
commit a4eb0aa2ac
2 changed files with 12 additions and 8 deletions
-2
View File
@@ -157,8 +157,6 @@ class OAuthSimple:
def _oauthEscape (self,string):
if not string:
return '';
if type(string) not in [type(''),type(1)]:
raise OAuthSimpleException('Array passed to _oauthEscape')
string = urllib2.quote(string);
return string.replace('/','%2F').replace('+','%20').replace('!','%21').replace('*','%2A').replace('\\','%27').replace('(','%28').replace(')','%29')