#NEWLINE# def putBucket( self , bucket ) : #NEWLINE# #INDENT# '\n        Creates a new bucket.\n       \n        **Arguments:**\n         * *bucket* -- Bucket name\n        ' #NEWLINE# bucket = convertToUTF8 ( bucket ) #NEWLINE# headers = { #NEWLINE# #INDENT# 'Content-Length' : 0 , #NEWLINE# #UNINDENT# } #NEWLINE# auth = self . _getAuthorization ( 'PUT' , '' , '' , headers , ( '/' + bucket ) ) #NEWLINE# headers . update ( auth ) #NEWLINE# url = ( 'http://%s/%s' % ( self . host , bucket ) ) #NEWLINE# d = self . rq . getPage ( url , method = 'PUT' , headers = url ) #NEWLINE# d . addErrback ( self . _genericErrback , url , method = 'PUT' , headers = headers ) #NEWLINE# return d