Use double quotations for multi-line comments
Double quotations are widely used for multi-line comments in OpenStack projects. This patch replaces single quotations used for multi-line comments. Note that this patch only deals with swift related modules, and we have to do the same thing about files in other modules like SBus and daemon factory. Change-Id: Ib3d44be571b25686e7aa1db4cc1069bba8103368
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
'''-------------------------------------------------------------------------
|
||||
"""-------------------------------------------------------------------------
|
||||
Copyright IBM Corp. 2015, 2015 All Rights Reserved
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
@@ -11,7 +11,7 @@ distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
Limitations under the License.
|
||||
-------------------------------------------------------------------------'''
|
||||
-------------------------------------------------------------------------"""
|
||||
from setuptools import setup
|
||||
paste_factory = ['storlet_handler = '
|
||||
'storlet_middleware.storlet_handler:filter_factory']
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
'''-------------------------------------------------------------------------
|
||||
"""-------------------------------------------------------------------------
|
||||
Copyright IBM Corp. 2015, 2015 All Rights Reserved
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
@@ -11,7 +11,7 @@ distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
Limitations under the License.
|
||||
-------------------------------------------------------------------------'''
|
||||
-------------------------------------------------------------------------"""
|
||||
|
||||
|
||||
class StorletGatewayBase(object):
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
'''-------------------------------------------------------------------------
|
||||
"""-------------------------------------------------------------------------
|
||||
Copyright IBM Corp. 2015, 2015 All Rights Reserved
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
@@ -11,13 +11,13 @@ distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
Limitations under the License.
|
||||
-------------------------------------------------------------------------'''
|
||||
-------------------------------------------------------------------------"""
|
||||
|
||||
'''
|
||||
"""
|
||||
Created on Mar 24, 2015
|
||||
|
||||
@author: Yosef Moatti
|
||||
'''
|
||||
"""
|
||||
|
||||
import os
|
||||
import select
|
||||
@@ -37,7 +37,7 @@ from swift.common.wsgi import make_subrequest
|
||||
CONDITIONAL_KEYS = ['IF_MATCH', 'IF_NONE_MATCH', 'IF_MODIFIED_SINCE',
|
||||
'IF_UNMODIFIED_SINCE']
|
||||
|
||||
'''---------------------------------------------------------------------------
|
||||
"""---------------------------------------------------------------------------
|
||||
The Storlet Gateway API
|
||||
The API is made of:
|
||||
(1) The classes StorletGETRequest, StorletPUTRequest. These encapsulate
|
||||
@@ -54,7 +54,7 @@ The API is made of:
|
||||
(3) parse_gateway_conf parses the docker gateway specific configuration. While
|
||||
it is part of the API, it is implemented as a static method as the parsing
|
||||
of the configuration takes place before the StorletGateway is instantiated
|
||||
---------------------------------------------------------------------------'''
|
||||
---------------------------------------------------------------------------"""
|
||||
|
||||
|
||||
class DockerStorletRequest(object):
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
'''-------------------------------------------------------------------------
|
||||
"""-------------------------------------------------------------------------
|
||||
Copyright IBM Corp. 2015, 2015 All Rights Reserved
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
@@ -11,13 +11,13 @@ distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
Limitations under the License.
|
||||
-------------------------------------------------------------------------'''
|
||||
-------------------------------------------------------------------------"""
|
||||
|
||||
'''
|
||||
"""
|
||||
Created on Feb 10, 2015
|
||||
|
||||
@author: eranr
|
||||
'''
|
||||
"""
|
||||
|
||||
import os
|
||||
import select
|
||||
@@ -42,9 +42,9 @@ from swift.common.constraints import MAX_META_OVERALL_SIZE
|
||||
|
||||
eventlet.monkey_patch()
|
||||
|
||||
'''---------------------------------------------------------------------------
|
||||
"""---------------------------------------------------------------------------
|
||||
Sandbox API
|
||||
'''
|
||||
"""
|
||||
|
||||
|
||||
class RunTimePaths(object):
|
||||
@@ -169,11 +169,11 @@ class RunTimePaths(object):
|
||||
return os.path.join(self.host_cache_root, self.scope,
|
||||
self.storlet_dependency)
|
||||
|
||||
'''---------------------------------------------------------------------------
|
||||
"""---------------------------------------------------------------------------
|
||||
Docker Stateful Container API
|
||||
The RunTimeSandbox serve as an API between the Docker Gateway and
|
||||
a re-usable per account sandbox
|
||||
---------------------------------------------------------------------------'''
|
||||
---------------------------------------------------------------------------"""
|
||||
|
||||
|
||||
class RunTimeSandbox(object):
|
||||
@@ -407,14 +407,14 @@ class RunTimeSandbox(object):
|
||||
else:
|
||||
self.logger.debug('Daemon started')
|
||||
|
||||
'''---------------------------------------------------------------------------
|
||||
"""---------------------------------------------------------------------------
|
||||
Storlet Daemon API
|
||||
The StorletInvocationGETProtocol, StorletInvocationPUTProtocol,
|
||||
StorletInvocationSLOProtocol
|
||||
server as an API between the Docker Gateway and the Storlet Daemon which
|
||||
runs inside the Docker container. These classes implement the Storlet execution
|
||||
protocol
|
||||
---------------------------------------------------------------------------'''
|
||||
---------------------------------------------------------------------------"""
|
||||
|
||||
|
||||
class StorletInvocationProtocol(object):
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
'''-------------------------------------------------------------------------
|
||||
"""-------------------------------------------------------------------------
|
||||
Copyright IBM Corp. 2015, 2015 All Rights Reserved
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
@@ -11,13 +11,13 @@ distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
Limitations under the License.
|
||||
-------------------------------------------------------------------------'''
|
||||
-------------------------------------------------------------------------"""
|
||||
|
||||
'''
|
||||
"""
|
||||
Created on Feb 18, 2014
|
||||
|
||||
@author: gilv
|
||||
'''
|
||||
"""
|
||||
import os
|
||||
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
'''-------------------------------------------------------------------------
|
||||
"""-------------------------------------------------------------------------
|
||||
Copyright IBM Corp. 2015, 2015 All Rights Reserved
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
@@ -9,12 +9,12 @@ distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
Limitations under the License.
|
||||
-------------------------------------------------------------------------'''
|
||||
-------------------------------------------------------------------------"""
|
||||
|
||||
'''
|
||||
"""
|
||||
Created on Feb 18, 2014
|
||||
@author: Gil Vernik
|
||||
'''
|
||||
"""
|
||||
|
||||
import ConfigParser
|
||||
import urllib
|
||||
|
||||
Reference in New Issue
Block a user