Skip to content

Commit 6ea3321

Browse files
committed
Removed excess quotes in triple quotes.
1 parent 8e6bbd1 commit 6ea3321

5 files changed

Lines changed: 11 additions & 11 deletions

File tree

DBUtils/PooledDB.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ def steady_connection(self):
250250
*self._args, **self._kwargs)
251251

252252
def connection(self, shareable=True):
253-
""""Get a steady, cached DB-API 2 connection from the pool.
253+
"""Get a steady, cached DB-API 2 connection from the pool.
254254
255255
If shareable is set and the underlying DB-API 2 allows it,
256256
then the connection may be shared with other threads.

DBUtils/PooledPg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ def steady_connection(self):
187187
*self._args, **self._kwargs)
188188

189189
def connection(self):
190-
""""Get a steady, cached PostgreSQL connection from the pool."""
190+
"""Get a steady, cached PostgreSQL connection from the pool."""
191191
if self._connections:
192192
if not self._connections.acquire(self._blocking):
193193
raise TooManyConnections

DBUtils/SimplePooledDB.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -174,15 +174,15 @@ def __init__(self, dbapi, maxconnections, *args, **kwargs):
174174
# not to this class which should be threadsafe in any case.
175175

176176
def _unthreadsafe_get_connection(self):
177-
""""Get a connection from the pool."""
177+
"""Get a connection from the pool."""
178178
return PooledDBConnection(self, self._queue.get())
179179

180180
def _unthreadsafe_add_connection(self, con):
181-
""""Add a connection to the pool."""
181+
"""Add a connection to the pool."""
182182
self._queue.put(con)
183183

184184
def _unthreadsafe_return_connection(self, con):
185-
""""Return a connection to the pool.
185+
"""Return a connection to the pool.
186186
187187
In this case, the connections need to be put
188188
back into the queue after they have been used.
@@ -198,7 +198,7 @@ def _unthreadsafe_return_connection(self, con):
198198
# This may lead to problems if you use transactions.
199199

200200
def _threadsafe_get_connection(self):
201-
""""Get a connection from the pool."""
201+
"""Get a connection from the pool."""
202202
self._lock.acquire()
203203
try:
204204
next = self._nextConnection
@@ -212,7 +212,7 @@ def _threadsafe_get_connection(self):
212212
self._lock.release()
213213

214214
def _threadsafe_add_connection(self, con):
215-
""""Add a connection to the pool."""
215+
"""Add a connection to the pool."""
216216
self._connections.append(con)
217217

218218
def _threadsafe_return_connection(self, con):

DBUtils/SimplePooledPg.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,9 @@ def __init__(self, maxconnections, *args, **kwargs):
133133
self.cache(PgConnection(*args, **kwargs))
134134

135135
def cache(self, con):
136-
""""Add or return a connection to the pool."""
136+
"""Add or return a connection to the pool."""
137137
self._queue.put(con)
138138

139139
def connection(self):
140-
""""Get a connection from the pool."""
140+
"""Get a connection from the pool."""
141141
return PooledPgConnection(self, self._queue.get())

DBUtils/SteadyDB.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ class SteadyDBConnection:
135135

136136
def __init__(self, creator, maxusage=None, setsession=None, failures=None,
137137
closeable=True, *args, **kwargs):
138-
""""Create a "tough" DB-API 2 connection."""
138+
"""Create a "tough" DB-API 2 connection."""
139139
# basic initialization to make finalizer work
140140
self._con = None
141141
self._closed = True
@@ -380,7 +380,7 @@ class SteadyDBCursor:
380380
"""A "tough" version of DB-API 2 cursors."""
381381

382382
def __init__(self, con, *args, **kwargs):
383-
""""Create a "tough" DB-API 2 cursor."""
383+
"""Create a "tough" DB-API 2 cursor."""
384384
# basic initialization to make finalizer work
385385
self._cursor = None
386386
self._closed = True

0 commit comments

Comments
 (0)