A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/datastax/python-driver/commit/96489cc below:

Remove deprecated cqlengine.columns.TimeUUID.from_datetime · datastax/python-driver@96489cc · GitHub

File tree Expand file treeCollapse file tree 2 files changed

+1

-21

lines changed

Filter options

Expand file treeCollapse file tree 2 files changed

+1

-21

lines changed Original file line number Diff line number Diff line change

@@ -540,6 +540,7 @@ def to_python(self, value):

540 540

def to_database(self, value):

541 541

return self.validate(value)

542 542 543 + 543 544

from uuid import UUID as pyUUID, getnode

544 545 545 546

@@ -550,25 +551,6 @@ class TimeUUID(UUID):

550 551 551 552

db_type = 'timeuuid'

552 553 553 -

@classmethod

554 -

def from_datetime(self, dt):

555 -

"""

556 -

generates a UUID for a given datetime

557 - 558 -

:param dt: datetime

559 -

:type dt: datetime

560 -

:return: uuid1

561 - 562 -

.. deprecated:: 2.6.0

563 - 564 -

Use :func:`cassandra.util.uuid_from_time`

565 - 566 -

"""

567 -

msg = "cqlengine.columns.TimeUUID.from_datetime is deprecated. Use cassandra.util.uuid_from_time instead."

568 -

warnings.warn(msg, DeprecationWarning)

569 -

log.warning(msg)

570 -

return util.uuid_from_time(dt)

571 - 572 554 573 555

class Boolean(Column):

574 556

"""

Original file line number Diff line number Diff line change

@@ -78,8 +78,6 @@ Columns of all types are initialized by passing :class:`.Column` attributes to t

78 78 79 79

.. autoclass:: TimeUUID(**kwargs)

80 80 81 -

.. automethod:: from_datetime

82 - 83 81

.. autoclass:: TinyInt(**kwargs)

84 82 85 83

.. autoclass:: UserDefinedType

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4