]> khamidou — GitHub mirrors - vcrpy.git/commitdiff
Add TODO and elaborate on comment
authorTye Wang <tye.wang@venmo.com>
Fri, 18 Sep 2015 16:19:17 +0000 (12:19 -0400)
committerTye Wang <tye.wang@venmo.com>
Fri, 18 Sep 2015 16:19:17 +0000 (12:19 -0400)
vcr/stubs/__init__.py

index f266ecfa96401fe3e723e2f2b7d49e6ca53b99dc..0d9af5d9761a67b03aadf8a7d65c19d613ba2ecc 100644 (file)
@@ -323,10 +323,15 @@ class VCRConnection(object):
         For example, urllib3 will set certain attributes on the connection,
         such as 'ssl_version'. These attributes need to get set on the real
         connection to have the correct and expected behavior.
+
+        TODO: Separately setting the attribute on the two instances is not
+        ideal. We should switch to a proxying implementation.
         """
         try:
             setattr(self.real_connection, name, value)
-        except AttributeError: # raised if real_connection has not been set yet
+        except AttributeError:
+             # raised if real_connection has not been set yet, such as when
+             # we're setting the real_connection itself for the first time
             pass
 
         super(VCRConnection, self).__setattr__(name, value)