Skip to content

Commit 76a918e

Browse files
committed
Fix rebase hork.
1 parent 99990fd commit 76a918e

2 files changed

Lines changed: 0 additions & 27 deletions

File tree

gcloud/datastore/connection.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -126,23 +126,6 @@ def build_api_url(cls, dataset_id, method, base_url=None,
126126
api_version=(api_version or cls.API_VERSION),
127127
dataset_id=dataset_id, method=method)
128128

129-
def transaction(self, transaction=connection.Connection._EMPTY):
130-
"""Getter/setter for the connection's transaction object.
131-
132-
:type transaction: :class:`gcloud.datastore.transaction.Transaction`,
133-
(setting), or omitted (getting).
134-
:param transaction: The new transaction (if passed).
135-
136-
:rtype: :class:`gcloud.datastore.transaction.Transaction`, (getting)
137-
or :class:`gcloud.datastore.connection.Connection` (setting)
138-
:returns: The current transaction (getting) or self (setting).
139-
"""
140-
if transaction is self._EMPTY:
141-
return self._current_transaction
142-
else:
143-
self._current_transaction = transaction
144-
return self
145-
146129
def lookup(self, dataset_id, key_pbs,
147130
missing=None, deferred=None, eventual=False):
148131
"""Lookup keys from a dataset in the Cloud Datastore.

gcloud/datastore/test_connection.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -179,16 +179,6 @@ def test_build_api_url_w_explicit_base_version(self):
179179
self.assertEqual(klass.build_api_url(DATASET_ID, METHOD, BASE, VER),
180180
URI)
181181

182-
def test_transaction_getter_unset(self):
183-
conn = self._makeOne()
184-
self.assertTrue(conn.transaction() is None)
185-
186-
def test_transaction_setter(self):
187-
xact = object()
188-
conn = self._makeOne()
189-
self.assertTrue(conn.transaction(xact) is conn)
190-
self.assertTrue(conn.transaction() is xact)
191-
192182
def test_lookup_single_key_empty_response(self):
193183
from gcloud.datastore import datastore_v1_pb2 as datastore_pb
194184

0 commit comments

Comments
 (0)