summaryrefslogtreecommitdiffstats
path: root/contrib/python/protobuf
diff options
context:
space:
mode:
authorAlexSm <[email protected]>2024-01-04 15:09:05 +0100
committerGitHub <[email protected]>2024-01-04 15:09:05 +0100
commitdab291146f6cd7d35684e3a1150e5bb1c412982c (patch)
tree36ef35f6cacb6432845a4a33f940c95871036b32 /contrib/python/protobuf
parent63660ad5e7512029fd0218e7a636580695a24e1f (diff)
Library import 5, delete go dependencies (#832)
* Library import 5, delete go dependencies * Fix yt client
Diffstat (limited to 'contrib/python/protobuf')
-rw-r--r--contrib/python/protobuf/py3/google/protobuf/internal/well_known_types.py2
-rw-r--r--contrib/python/protobuf/py3/google/protobuf/pyext/__init__.py4
2 files changed, 5 insertions, 1 deletions
diff --git a/contrib/python/protobuf/py3/google/protobuf/internal/well_known_types.py b/contrib/python/protobuf/py3/google/protobuf/internal/well_known_types.py
index f14f1527caa..8af0665abca 100644
--- a/contrib/python/protobuf/py3/google/protobuf/internal/well_known_types.py
+++ b/contrib/python/protobuf/py3/google/protobuf/internal/well_known_types.py
@@ -95,7 +95,7 @@ class Any(object):
return '/' in self.type_url and self.TypeName() == descriptor.full_name
-_EPOCH_DATETIME = datetime.utcfromtimestamp(0)
+_EPOCH_DATETIME = datetime(1970, 1, 1, tzinfo=None)
class Timestamp(object):
diff --git a/contrib/python/protobuf/py3/google/protobuf/pyext/__init__.py b/contrib/python/protobuf/py3/google/protobuf/pyext/__init__.py
index e69de29bb2d..0cb9329b2c4 100644
--- a/contrib/python/protobuf/py3/google/protobuf/pyext/__init__.py
+++ b/contrib/python/protobuf/py3/google/protobuf/pyext/__init__.py
@@ -0,0 +1,4 @@
+import warnings
+
+with warnings.catch_warnings(action="ignore", category=DeprecationWarning):
+ import google.protobuf.pyext._message