aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python
diff options
context:
space:
mode:
authorspreis <spreis@yandex-team.ru>2022-02-10 16:47:13 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:47:13 +0300
commitbcd1126cbd5d445cd0665d295198aa39c6ab8cbe (patch)
treed41d29a041d5733ef148335290dbb817b197d4cd /contrib/python
parent986cb5d624f352524bfa0c42c9a7695235cdaa41 (diff)
downloadydb-bcd1126cbd5d445cd0665d295198aa39c6ab8cbe.tar.gz
Restoring authorship annotation for <spreis@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'contrib/python')
-rw-r--r--contrib/python/certifi/ya.make2
-rw-r--r--contrib/python/future/ya.make52
-rw-r--r--contrib/python/packaging/ya.make2
-rw-r--r--contrib/python/protobuf/py2/google/protobuf/pyext/message.cc34
-rw-r--r--contrib/python/protobuf/py3/google/protobuf/pyext/message.cc34
-rw-r--r--contrib/python/py/ya.make2
-rw-r--r--contrib/python/pyparsing/py2/ya.make2
-rw-r--r--contrib/python/pyparsing/ya.make2
-rw-r--r--contrib/python/setuptools/ya.make2
-rw-r--r--contrib/python/six/ya.make2
-rw-r--r--contrib/python/tornado/tornado-4/ya.make4
-rw-r--r--contrib/python/ya.make2
12 files changed, 70 insertions, 70 deletions
diff --git a/contrib/python/certifi/ya.make b/contrib/python/certifi/ya.make
index d13fe73acc..0ee37b7829 100644
--- a/contrib/python/certifi/ya.make
+++ b/contrib/python/certifi/ya.make
@@ -1,4 +1,4 @@
-PY23_LIBRARY()
+PY23_LIBRARY()
LICENSE(Service-Py23-Proxy)
diff --git a/contrib/python/future/ya.make b/contrib/python/future/ya.make
index ba24f13341..084db12084 100644
--- a/contrib/python/future/ya.make
+++ b/contrib/python/future/ya.make
@@ -1,4 +1,4 @@
-PY23_LIBRARY()
+PY23_LIBRARY()
LICENSE(MIT)
@@ -138,32 +138,32 @@ PY_SRCS(
)
IF (MODULE_TAG == "PY2")
- PY_SRCS(
- TOP_LEVEL
- _dummy_thread/__init__.py
- _markupbase/__init__.py
- _thread/__init__.py
- builtins/__init__.py
- copyreg/__init__.py
- future/__init__.py
- html/__init__.py
- html/entities.py
- html/parser.py
- http/__init__.py
- http/client.py
- http/cookiejar.py
- http/cookies.py
- http/server.py
+ PY_SRCS(
+ TOP_LEVEL
+ _dummy_thread/__init__.py
+ _markupbase/__init__.py
+ _thread/__init__.py
+ builtins/__init__.py
+ copyreg/__init__.py
+ future/__init__.py
+ html/__init__.py
+ html/entities.py
+ html/parser.py
+ http/__init__.py
+ http/client.py
+ http/cookiejar.py
+ http/cookies.py
+ http/server.py
past/__init__.py
- queue/__init__.py
- reprlib/__init__.py
- socketserver/__init__.py
- xmlrpc/__init__.py
- xmlrpc/client.py
- xmlrpc/server.py
- )
-ENDIF()
-
+ queue/__init__.py
+ reprlib/__init__.py
+ socketserver/__init__.py
+ xmlrpc/__init__.py
+ xmlrpc/client.py
+ xmlrpc/server.py
+ )
+ENDIF()
+
IF (OS_WINDOWS)
PY_SRCS(
TOP_LEVEL
diff --git a/contrib/python/packaging/ya.make b/contrib/python/packaging/ya.make
index 45549cf137..011e164c08 100644
--- a/contrib/python/packaging/ya.make
+++ b/contrib/python/packaging/ya.make
@@ -1,4 +1,4 @@
-PY23_LIBRARY()
+PY23_LIBRARY()
LICENSE(Service-Py23-Proxy)
diff --git a/contrib/python/protobuf/py2/google/protobuf/pyext/message.cc b/contrib/python/protobuf/py2/google/protobuf/pyext/message.cc
index 8b41ca47dd..3ee9b2664a 100644
--- a/contrib/python/protobuf/py2/google/protobuf/pyext/message.cc
+++ b/contrib/python/protobuf/py2/google/protobuf/pyext/message.cc
@@ -806,24 +806,24 @@ bool CheckAndSetString(
PyObject* ToStringObject(const FieldDescriptor* descriptor,
const TProtoStringType& value) {
-#if PY_MAJOR_VERSION >= 3
- if (descriptor->type() != FieldDescriptor::TYPE_STRING) {
- return PyBytes_FromStringAndSize(value.c_str(), value.length());
- }
-
- PyObject* result = PyUnicode_DecodeUTF8(value.c_str(), value.length(), NULL);
- // If the string can't be decoded in UTF-8, just return a string object that
- // contains the raw bytes. This can't happen if the value was assigned using
- // the members of the Python message object, but can happen if the values were
- // parsed from the wire (binary).
- if (result == NULL) {
- PyErr_Clear();
- result = PyBytes_FromStringAndSize(value.c_str(), value.length());
- }
- return result;
-#else
+#if PY_MAJOR_VERSION >= 3
+ if (descriptor->type() != FieldDescriptor::TYPE_STRING) {
+ return PyBytes_FromStringAndSize(value.c_str(), value.length());
+ }
+
+ PyObject* result = PyUnicode_DecodeUTF8(value.c_str(), value.length(), NULL);
+ // If the string can't be decoded in UTF-8, just return a string object that
+ // contains the raw bytes. This can't happen if the value was assigned using
+ // the members of the Python message object, but can happen if the values were
+ // parsed from the wire (binary).
+ if (result == NULL) {
+ PyErr_Clear();
+ result = PyBytes_FromStringAndSize(value.c_str(), value.length());
+ }
+ return result;
+#else
return PyBytes_FromStringAndSize(value.c_str(), value.length());
-#endif
+#endif
}
bool CheckFieldBelongsToMessage(const FieldDescriptor* field_descriptor,
diff --git a/contrib/python/protobuf/py3/google/protobuf/pyext/message.cc b/contrib/python/protobuf/py3/google/protobuf/pyext/message.cc
index 8b41ca47dd..3ee9b2664a 100644
--- a/contrib/python/protobuf/py3/google/protobuf/pyext/message.cc
+++ b/contrib/python/protobuf/py3/google/protobuf/pyext/message.cc
@@ -806,24 +806,24 @@ bool CheckAndSetString(
PyObject* ToStringObject(const FieldDescriptor* descriptor,
const TProtoStringType& value) {
-#if PY_MAJOR_VERSION >= 3
- if (descriptor->type() != FieldDescriptor::TYPE_STRING) {
- return PyBytes_FromStringAndSize(value.c_str(), value.length());
- }
-
- PyObject* result = PyUnicode_DecodeUTF8(value.c_str(), value.length(), NULL);
- // If the string can't be decoded in UTF-8, just return a string object that
- // contains the raw bytes. This can't happen if the value was assigned using
- // the members of the Python message object, but can happen if the values were
- // parsed from the wire (binary).
- if (result == NULL) {
- PyErr_Clear();
- result = PyBytes_FromStringAndSize(value.c_str(), value.length());
- }
- return result;
-#else
+#if PY_MAJOR_VERSION >= 3
+ if (descriptor->type() != FieldDescriptor::TYPE_STRING) {
+ return PyBytes_FromStringAndSize(value.c_str(), value.length());
+ }
+
+ PyObject* result = PyUnicode_DecodeUTF8(value.c_str(), value.length(), NULL);
+ // If the string can't be decoded in UTF-8, just return a string object that
+ // contains the raw bytes. This can't happen if the value was assigned using
+ // the members of the Python message object, but can happen if the values were
+ // parsed from the wire (binary).
+ if (result == NULL) {
+ PyErr_Clear();
+ result = PyBytes_FromStringAndSize(value.c_str(), value.length());
+ }
+ return result;
+#else
return PyBytes_FromStringAndSize(value.c_str(), value.length());
-#endif
+#endif
}
bool CheckFieldBelongsToMessage(const FieldDescriptor* field_descriptor,
diff --git a/contrib/python/py/ya.make b/contrib/python/py/ya.make
index cc86cb7fa9..1e01a20542 100644
--- a/contrib/python/py/ya.make
+++ b/contrib/python/py/ya.make
@@ -1,6 +1,6 @@
# Generated by devtools/yamaker (pypi).
-PY23_LIBRARY()
+PY23_LIBRARY()
OWNER(g:python-contrib)
diff --git a/contrib/python/pyparsing/py2/ya.make b/contrib/python/pyparsing/py2/ya.make
index e4812f97b5..83f08183ed 100644
--- a/contrib/python/pyparsing/py2/ya.make
+++ b/contrib/python/pyparsing/py2/ya.make
@@ -1,6 +1,6 @@
# Generated by devtools/yamaker (pypi).
-PY23_LIBRARY()
+PY23_LIBRARY()
PROVIDES(pyparsing)
diff --git a/contrib/python/pyparsing/ya.make b/contrib/python/pyparsing/ya.make
index 66da70626d..663b5c04fd 100644
--- a/contrib/python/pyparsing/ya.make
+++ b/contrib/python/pyparsing/ya.make
@@ -1,4 +1,4 @@
-PY23_LIBRARY()
+PY23_LIBRARY()
LICENSE(Service-Py23-Proxy)
diff --git a/contrib/python/setuptools/ya.make b/contrib/python/setuptools/ya.make
index 535a2d61fa..58f50081bf 100644
--- a/contrib/python/setuptools/ya.make
+++ b/contrib/python/setuptools/ya.make
@@ -1,4 +1,4 @@
-PY23_LIBRARY()
+PY23_LIBRARY()
LICENSE(Service-Py23-Proxy)
diff --git a/contrib/python/six/ya.make b/contrib/python/six/ya.make
index e0c7849214..25406c9509 100644
--- a/contrib/python/six/ya.make
+++ b/contrib/python/six/ya.make
@@ -1,6 +1,6 @@
OWNER(g:python-contrib)
-PY23_LIBRARY()
+PY23_LIBRARY()
LICENSE(MIT)
diff --git a/contrib/python/tornado/tornado-4/ya.make b/contrib/python/tornado/tornado-4/ya.make
index 0ea2ed6040..88b9d3b592 100644
--- a/contrib/python/tornado/tornado-4/ya.make
+++ b/contrib/python/tornado/tornado-4/ya.make
@@ -6,8 +6,8 @@ LICENSE(Apache-2.0)
VERSION(4.5.3)
-PROVIDES(tornado)
-
+PROVIDES(tornado)
+
PEERDIR(
# because of ca bundle
contrib/python/certifi
diff --git a/contrib/python/ya.make b/contrib/python/ya.make
index d01ced9f3a..922c4b216d 100644
--- a/contrib/python/ya.make
+++ b/contrib/python/ya.make
@@ -509,7 +509,7 @@ RECURSE(
imagesize
IMAPClient
imgkit
- implicit
+ implicit
importlib-metadata
importlib-resources
incremental