-P <port> flag need to cast argument to an int
See below:
$ lsobj -P 7480
Traceback (most recent call last):
File "/usr/bin/lsobj", line 130, in <module>
list_buckets(Obj.conn, long_list=args.long_list)
File "/usr/bin/lsobj", line 91, in list_buckets
for b in s3.get_all_buckets():
File "/usr/lib/python2.6/site-packages/boto/s3/connection.py", line 436, in get_all_buckets
response = self.make_request('GET', headers=headers)
File "/usr/lib/python2.6/site-packages/boto/s3/connection.py", line 654, in make_request
host = self.calling_format.build_host(self.server_name(), bucket)
File "/usr/lib/python2.6/site-packages/boto/connection.py", line 661, in server_name
signature_host = '%s:%d' % (self.host, port)
TypeError: %d format: a number is required, not str