def configure(self): WalrusRequest.configure(self) for path in self.args["paths"]: if path.startswith("/"): raise ArgumentError(("argument '{0}' must not start with " '"/"; format is BUCKET[/KEY]').format(path)) bucket = path.split("/", 1)[0] try: validate_generic_bucket_name(bucket) except ValueError as err: raise ArgumentError('bucket "{0}": {1}'.format(bucket, err.message))
def configure(self): WalrusRequest.configure(self) for path in self.args['paths']: if path.startswith('/'): raise ArgumentError(( 'argument \'{0}\' must not start with ' '"/"; format is BUCKET[/KEY]').format(path)) bucket = path.split('/', 1)[0] try: validate_generic_bucket_name(bucket) except ValueError as err: raise ArgumentError( 'bucket "{0}": {1}'.format(bucket, err.message))
def configure(self): WalrusRequest.configure(self) validate_generic_bucket_name(self.args['bucket'])
def configure(self): WalrusRequest.configure(self) validate_generic_bucket_name(self.args['bucket'])