/
usr
/
lib
/
python2.6
/
site-packages
/
boto
/
/usr/lib/python2.6/site-packages/boto
mkdir
upload
Name
Size
Mode
Actions
beanstalk/
-
0755
rm
cacerts/
-
0755
rm
cloudformation/
-
0755
rm
cloudfront/
-
0755
rm
cloudsearch/
-
0755
rm
cloudsearch2/
-
0755
rm
cloudtrail/
-
0755
rm
cognito/
-
0755
rm
contrib/
-
0755
rm
datapipeline/
-
0755
rm
directconnect/
-
0755
rm
dynamodb/
-
0755
rm
dynamodb2/
-
0755
rm
ec2/
-
0755
rm
ecs/
-
0755
rm
elasticache/
-
0755
rm
elastictranscoder/
-
0755
rm
emr/
-
0755
rm
file/
-
0755
rm
fps/
-
0755
rm
glacier/
-
0755
rm
gs/
-
0755
rm
iam/
-
0755
rm
kinesis/
-
0755
rm
logs/
-
0755
rm
manage/
-
0755
rm
mashups/
-
0755
rm
mturk/
-
0755
rm
mws/
-
0755
rm
opsworks/
-
0755
rm
pyami/
-
0755
rm
rds/
-
0755
rm
rds2/
-
0755
rm
redshift/
-
0755
rm
roboto/
-
0755
rm
route53/
-
0755
rm
s3/
-
0755
rm
sdb/
-
0755
rm
services/
-
0755
rm
ses/
-
0755
rm
sns/
-
0755
rm
sqs/
-
0755
rm
sts/
-
0755
rm
support/
-
0755
rm
swf/
-
0755
rm
vendored/
-
0755
rm
vpc/
-
0755
rm
auth.py
39854
0644
edit
dl
rm
auth.pyc
34891
0644
edit
dl
rm
auth.pyo
34891
0644
edit
dl
rm
auth_handler.py
2064
0644
edit
dl
rm
auth_handler.pyc
1735
0644
edit
dl
rm
auth_handler.pyo
1735
0644
edit
dl
rm
compat.py
2639
0644
edit
dl
rm
compat.pyc
1521
0644
edit
dl
rm
compat.pyo
1521
0644
edit
dl
rm
connection.py
50791
0644
edit
dl
rm
connection.pyc
38430
0644
edit
dl
rm
connection.pyo
38430
0644
edit
dl
rm
endpoints.json
18384
0644
edit
dl
rm
exception.py
17106
0644
edit
dl
rm
exception.pyc
22628
0644
edit
dl
rm
exception.pyo
22628
0644
edit
dl
rm
handler.py
2382
0644
edit
dl
rm
handler.pyc
2379
0644
edit
dl
rm
handler.pyo
2379
0644
edit
dl
rm
https_connection.py
5135
0644
edit
dl
rm
https_connection.pyc
5088
0644
edit
dl
rm
https_connection.pyo
5088
0644
edit
dl
rm
jsonresponse.py
6032
0644
edit
dl
rm
jsonresponse.pyc
5733
0644
edit
dl
rm
jsonresponse.pyo
5733
0644
edit
dl
rm
plugin.py
2711
0644
edit
dl
rm
plugin.pyc
2327
0644
edit
dl
rm
plugin.pyo
2327
0644
edit
dl
rm
provider.py
20890
0644
edit
dl
rm
provider.pyc
13686
0644
edit
dl
rm
provider.pyo
13686
0644
edit
dl
rm
regioninfo.py
6214
0644
edit
dl
rm
regioninfo.pyc
5606
0644
edit
dl
rm
regioninfo.pyo
5606
0644
edit
dl
rm
requestlog.py
1486
0644
edit
dl
rm
requestlog.pyc
2185
0644
edit
dl
rm
requestlog.pyo
2185
0644
edit
dl
rm
resultset.py
6556
0644
edit
dl
rm
resultset.pyc
5769
0644
edit
dl
rm
resultset.pyo
5769
0644
edit
dl
rm
storage_uri.py
39115
0644
edit
dl
rm
storage_uri.pyc
35279
0644
edit
dl
rm
storage_uri.pyo
35279
0644
edit
dl
rm
utils.py
34885
0644
edit
dl
rm
utils.pyc
34695
0644
edit
dl
rm
utils.pyo
34695
0644
edit
dl
rm
__init__.py
36337
0644
edit
dl
rm
__init__.pyc
33446
0644
edit
dl
rm
__init__.pyo
33446
0644
edit
dl
rm
Edit:
/usr/lib/python2.6/site-packages/boto/compat.py
(2639B)
# Copyright (c) 2012 Amazon.com, Inc. or its affiliates. All Rights Reserved # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modify, merge, publish, dis- # tribute, sublicense, and/or sell copies of the Software, and to permit # persons to whom the Software is furnished to do so, subject to the fol- # lowing conditions: # # The above copyright notice and this permission notice shall be included # in all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL- # ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT # SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS # IN THE SOFTWARE. # import os # This allows boto modules to say "from boto.compat import json". This is # preferred so that all modules don't have to repeat this idiom. try: import simplejson as json except ImportError: import json # Switch to use encodebytes, which deprecates encodestring in Python 3 try: from base64 import encodebytes except ImportError: from base64 import encodestring as encodebytes # If running in Google App Engine there is no "user" and # os.path.expanduser() will fail. Attempt to detect this case and use a # no-op expanduser function in this case. try: os.path.expanduser('~') expanduser = os.path.expanduser except (AttributeError, ImportError): # This is probably running on App Engine. expanduser = (lambda x: x) from boto.vendored import six from boto.vendored.six import BytesIO, StringIO from boto.vendored.six.moves import filter, http_client, map, _thread, \ urllib, zip from boto.vendored.six.moves.queue import Queue from boto.vendored.six.moves.urllib.parse import parse_qs, quote, unquote, \ urlparse, urlsplit from boto.vendored.six.moves.urllib.request import urlopen if six.PY3: # StandardError was removed, so use the base exception type instead StandardError = Exception long_type = int from configparser import ConfigParser else: StandardError = StandardError long_type = long from ConfigParser import SafeConfigParser as ConfigParser
Save
cmd:
run