From b20bab41b12f6b714f78a607f3a49fa407db05d9 Mon Sep 17 00:00:00 2001 From: Peter Portante Date: Tue, 1 Oct 2013 11:30:15 -0400 Subject: [PATCH] Remove unnecessary swift_conn comments Change-Id: I659073a979e2ed6f76cc0df828e600dc1d955b90 Signed-off-by: Peter Portante --- swift/proxy/controllers/account.py | 11 ----------- swift/proxy/controllers/container.py | 11 ----------- swift/proxy/server.py | 11 ----------- 3 files changed, 33 deletions(-) diff --git a/swift/proxy/controllers/account.py b/swift/proxy/controllers/account.py index 2d2aa36677..4ab57b1e2d 100644 --- a/swift/proxy/controllers/account.py +++ b/swift/proxy/controllers/account.py @@ -13,17 +13,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -# NOTE: swift_conn -# You'll see swift_conn passed around a few places in this file. This is the -# source httplib connection of whatever it is attached to. -# It is used when early termination of reading from the connection should -# happen, such as when a range request is satisfied but there's still more the -# source connection would like to send. To prevent having to read all the data -# that could be left, the source connection can be .close() and then reads -# commence to empty out any buffers. -# These shenanigans are to ensure all related objects can be garbage -# collected. We've seen objects hang around forever otherwise. - from swift import gettext_ as _ from urllib import unquote diff --git a/swift/proxy/controllers/container.py b/swift/proxy/controllers/container.py index 2c38ba44c1..18febc4d2e 100644 --- a/swift/proxy/controllers/container.py +++ b/swift/proxy/controllers/container.py @@ -13,17 +13,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -# NOTE: swift_conn -# You'll see swift_conn passed around a few places in this file. This is the -# source httplib connection of whatever it is attached to. -# It is used when early termination of reading from the connection should -# happen, such as when a range request is satisfied but there's still more the -# source connection would like to send. To prevent having to read all the data -# that could be left, the source connection can be .close() and then reads -# commence to empty out any buffers. -# These shenanigans are to ensure all related objects can be garbage -# collected. We've seen objects hang around forever otherwise. - from swift import gettext_ as _ from urllib import unquote diff --git a/swift/proxy/server.py b/swift/proxy/server.py index bbc439f5b6..8a38c5bf79 100644 --- a/swift/proxy/server.py +++ b/swift/proxy/server.py @@ -13,17 +13,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -# NOTE: swift_conn -# You'll see swift_conn passed around a few places in this file. This is the -# source httplib connection of whatever it is attached to. -# It is used when early termination of reading from the connection should -# happen, such as when a range request is satisfied but there's still more the -# source connection would like to send. To prevent having to read all the data -# that could be left, the source connection can be .close() and then reads -# commence to empty out any buffers. -# These shenanigans are to ensure all related objects can be garbage -# collected. We've seen objects hang around forever otherwise. - import mimetypes import os from swift import gettext_ as _