]> khamidou — GitHub mirrors - vcrpy.git/commitdiff
clarifying comment in patch.py.
authorIvan Malison <IvanMalison@gmail.com>
Tue, 24 Mar 2015 01:00:23 +0000 (18:00 -0700)
committerIvan Malison <IvanMalison@gmail.com>
Tue, 24 Mar 2015 01:00:23 +0000 (18:00 -0700)
vcr/patch.py

index 02b5df60db2b4a7b902a0b9c3628b9959e2cddc0..a0d6cc89a0c86b190ccb7867053d3ab2b7cfd0ff 100644 (file)
@@ -158,7 +158,8 @@ class CassettePatcherBuilder(object):
             # patched version of the connection class. This might not
             # always be the case because the pool keeps previously
             # used connections (which might actually be of a different
-            # class) around.
+            # class) around. This while loop will terminate because
+            # eventually the pool will run out of connections.
             while not isinstance(connection, connection_class):
                 connection = get_conn(pool, timeout)
             return connection