diff --git a/src/quadpype/hosts/nuke/vendor/google/protobuf/internal/well_known_types.py b/src/quadpype/hosts/nuke/vendor/google/protobuf/internal/well_known_types.py index 5c8fc6db11..b581ab750a 100644 --- a/src/quadpype/hosts/nuke/vendor/google/protobuf/internal/well_known_types.py +++ b/src/quadpype/hosts/nuke/vendor/google/protobuf/internal/well_known_types.py @@ -42,8 +42,7 @@ import calendar import collections.abc - -from datetime import datetime, timezone, timedelta +import datetime from google.protobuf.descriptor import FieldDescriptor @@ -161,8 +160,8 @@ def FromJsonString(self, value): raise ValueError( 'time data \'{0}\' does not match format \'%Y-%m-%dT%H:%M:%S\', ' 'lowercase \'t\' is not accepted'.format(second_value)) - date_object = datetime.strptime(second_value, _TIMESTAMPFOMAT) - td = date_object - datetime(1970, 1, 1) + date_object = datetime.datetime.strptime(second_value, _TIMESTAMPFOMAT) + td = date_object - datetime.datetime(1970, 1, 1) seconds = td.seconds + td.days * _SECONDS_PER_DAY if len(nano_value) > 9: raise ValueError( @@ -193,7 +192,7 @@ def FromJsonString(self, value): def GetCurrentTime(self): """Get the current UTC into Timestamp.""" - self.FromDatetime(datetime.now(timezone.utc)) + self.FromDatetime(datetime.datetime.utcnow()) def ToNanoseconds(self): """Converts Timestamp to nanoseconds since epoch.""" @@ -245,7 +244,7 @@ def ToDatetime(self, tzinfo=None): Otherwise, returns a timezone-aware datetime in the input timezone. """ - delta = timedelta( + delta = datetime.timedelta( seconds=self.seconds, microseconds=_RoundTowardZero(self.nanos, _NANOS_PER_MICROSECOND)) if tzinfo is None: @@ -383,7 +382,7 @@ def FromSeconds(self, seconds): def ToTimedelta(self): """Converts Duration to timedelta.""" - return timedelta( + return datetime.timedelta( seconds=self.seconds, microseconds=_RoundTowardZero( self.nanos, _NANOS_PER_MICROSECOND)) diff --git a/src/quadpype/version.py b/src/quadpype/version.py index 68f57f3883..951a2ce6e0 100644 --- a/src/quadpype/version.py +++ b/src/quadpype/version.py @@ -1,3 +1,3 @@ # -*- coding: utf-8 -*- """File declaring QuadPype version.""" -__version__ = "4.0.13" +__version__ = "4.0.14"