diff options
author | spreis <spreis@yandex-team.ru> | 2022-02-10 16:47:13 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:13 +0300 |
commit | b49848d6e361b76904f094b7d5e10d6edea75afe (patch) | |
tree | 9814fbd1c3effac9b8377c5d604b367b14e2db55 /contrib/libs/python | |
parent | bcd1126cbd5d445cd0665d295198aa39c6ab8cbe (diff) | |
download | ydb-b49848d6e361b76904f094b7d5e10d6edea75afe.tar.gz |
Restoring authorship annotation for <spreis@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'contrib/libs/python')
131 files changed, 963 insertions, 963 deletions
diff --git a/contrib/libs/python/Include/Python-ast.h b/contrib/libs/python/Include/Python-ast.h index eb8881242c7..7628fd5a2a1 100644 --- a/contrib/libs/python/Include/Python-ast.h +++ b/contrib/libs/python/Include/Python-ast.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/Python-ast.h> -#else -#include <contrib/tools/python/src/Include/Python-ast.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/Python-ast.h> +#else +#include <contrib/tools/python/src/Include/Python-ast.h> +#endif diff --git a/contrib/libs/python/Include/Python.h b/contrib/libs/python/Include/Python.h index 2b2099e9439..5aa4c0b515a 100644 --- a/contrib/libs/python/Include/Python.h +++ b/contrib/libs/python/Include/Python.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/Python.h> -#else -#include <contrib/tools/python/src/Include/Python.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/Python.h> +#else +#include <contrib/tools/python/src/Include/Python.h> +#endif diff --git a/contrib/libs/python/Include/abstract.h b/contrib/libs/python/Include/abstract.h index a41ac2b272a..3073b25e256 100644 --- a/contrib/libs/python/Include/abstract.h +++ b/contrib/libs/python/Include/abstract.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/abstract.h> -#else -#include <contrib/tools/python/src/Include/abstract.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/abstract.h> +#else +#include <contrib/tools/python/src/Include/abstract.h> +#endif diff --git a/contrib/libs/python/Include/accu.h b/contrib/libs/python/Include/accu.h index 1e4a913828a..acd0f68a6a6 100644 --- a/contrib/libs/python/Include/accu.h +++ b/contrib/libs/python/Include/accu.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/accu.h> -#else -#error "No <accu.h> in Python2" -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/accu.h> +#else +#error "No <accu.h> in Python2" +#endif diff --git a/contrib/libs/python/Include/asdl.h b/contrib/libs/python/Include/asdl.h index 9e6e361386e..2f73d8ca486 100644 --- a/contrib/libs/python/Include/asdl.h +++ b/contrib/libs/python/Include/asdl.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/asdl.h> -#else -#include <contrib/tools/python/src/Include/asdl.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/asdl.h> +#else +#include <contrib/tools/python/src/Include/asdl.h> +#endif diff --git a/contrib/libs/python/Include/ast.h b/contrib/libs/python/Include/ast.h index 283cbbd86b0..124a7c14972 100644 --- a/contrib/libs/python/Include/ast.h +++ b/contrib/libs/python/Include/ast.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/ast.h> -#else -#include <contrib/tools/python/src/Include/ast.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/ast.h> +#else +#include <contrib/tools/python/src/Include/ast.h> +#endif diff --git a/contrib/libs/python/Include/bitset.h b/contrib/libs/python/Include/bitset.h index a4e3fbd0599..7e7a26c769c 100644 --- a/contrib/libs/python/Include/bitset.h +++ b/contrib/libs/python/Include/bitset.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/bitset.h> -#else -#include <contrib/tools/python/src/Include/bitset.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/bitset.h> +#else +#include <contrib/tools/python/src/Include/bitset.h> +#endif diff --git a/contrib/libs/python/Include/bltinmodule.h b/contrib/libs/python/Include/bltinmodule.h index 3abe078c861..0cd2a7ac76b 100644 --- a/contrib/libs/python/Include/bltinmodule.h +++ b/contrib/libs/python/Include/bltinmodule.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/bltinmodule.h> -#else -#error "No <bltinmodule.h> in Python2" -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/bltinmodule.h> +#else +#error "No <bltinmodule.h> in Python2" +#endif diff --git a/contrib/libs/python/Include/boolobject.h b/contrib/libs/python/Include/boolobject.h index 59a6c1814d2..9ab8bbe43c8 100644 --- a/contrib/libs/python/Include/boolobject.h +++ b/contrib/libs/python/Include/boolobject.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/boolobject.h> -#else -#include <contrib/tools/python/src/Include/boolobject.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/boolobject.h> +#else +#include <contrib/tools/python/src/Include/boolobject.h> +#endif diff --git a/contrib/libs/python/Include/bufferobject.h b/contrib/libs/python/Include/bufferobject.h index 8218812e796..aed38f50a98 100644 --- a/contrib/libs/python/Include/bufferobject.h +++ b/contrib/libs/python/Include/bufferobject.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#error "No <bufferobject.h> in Python3" -#else -#include <contrib/tools/python/src/Include/bufferobject.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#error "No <bufferobject.h> in Python3" +#else +#include <contrib/tools/python/src/Include/bufferobject.h> +#endif diff --git a/contrib/libs/python/Include/bytearrayobject.h b/contrib/libs/python/Include/bytearrayobject.h index 463569e3945..0e69010be76 100644 --- a/contrib/libs/python/Include/bytearrayobject.h +++ b/contrib/libs/python/Include/bytearrayobject.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/bytearrayobject.h> -#else -#include <contrib/tools/python/src/Include/bytearrayobject.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/bytearrayobject.h> +#else +#include <contrib/tools/python/src/Include/bytearrayobject.h> +#endif diff --git a/contrib/libs/python/Include/bytes_methods.h b/contrib/libs/python/Include/bytes_methods.h index 7468e1e129d..f74e146029c 100644 --- a/contrib/libs/python/Include/bytes_methods.h +++ b/contrib/libs/python/Include/bytes_methods.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 +#pragma once + +#ifdef USE_PYTHON3 #error "No <bytes_methods.h> in Python3" -#else -#include <contrib/tools/python/src/Include/bytes_methods.h> -#endif +#else +#include <contrib/tools/python/src/Include/bytes_methods.h> +#endif diff --git a/contrib/libs/python/Include/bytesobject.h b/contrib/libs/python/Include/bytesobject.h index 307c6b432d2..ca972c3df20 100644 --- a/contrib/libs/python/Include/bytesobject.h +++ b/contrib/libs/python/Include/bytesobject.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/bytesobject.h> -#else -#include <contrib/tools/python/src/Include/bytesobject.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/bytesobject.h> +#else +#include <contrib/tools/python/src/Include/bytesobject.h> +#endif diff --git a/contrib/libs/python/Include/cStringIO.h b/contrib/libs/python/Include/cStringIO.h index 07c32840e1e..3a8a908d561 100644 --- a/contrib/libs/python/Include/cStringIO.h +++ b/contrib/libs/python/Include/cStringIO.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#error "No <cStringIO.h> in Python3" -#else -#include <contrib/tools/python/src/Include/cStringIO.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#error "No <cStringIO.h> in Python3" +#else +#include <contrib/tools/python/src/Include/cStringIO.h> +#endif diff --git a/contrib/libs/python/Include/cellobject.h b/contrib/libs/python/Include/cellobject.h index 95fb27e553b..3345daa7fdf 100644 --- a/contrib/libs/python/Include/cellobject.h +++ b/contrib/libs/python/Include/cellobject.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/cellobject.h> -#else -#include <contrib/tools/python/src/Include/cellobject.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/cellobject.h> +#else +#include <contrib/tools/python/src/Include/cellobject.h> +#endif diff --git a/contrib/libs/python/Include/ceval.h b/contrib/libs/python/Include/ceval.h index 6f630d1f9f2..f169fdbe799 100644 --- a/contrib/libs/python/Include/ceval.h +++ b/contrib/libs/python/Include/ceval.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/ceval.h> -#else -#include <contrib/tools/python/src/Include/ceval.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/ceval.h> +#else +#include <contrib/tools/python/src/Include/ceval.h> +#endif diff --git a/contrib/libs/python/Include/classobject.h b/contrib/libs/python/Include/classobject.h index 1f407b3a440..6f7a4f5e6eb 100644 --- a/contrib/libs/python/Include/classobject.h +++ b/contrib/libs/python/Include/classobject.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/classobject.h> -#else -#include <contrib/tools/python/src/Include/classobject.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/classobject.h> +#else +#include <contrib/tools/python/src/Include/classobject.h> +#endif diff --git a/contrib/libs/python/Include/cobject.h b/contrib/libs/python/Include/cobject.h index d12c552e7ea..8fd2754e015 100644 --- a/contrib/libs/python/Include/cobject.h +++ b/contrib/libs/python/Include/cobject.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#error "No <cobject.h> in Python3" -#else -#include <contrib/tools/python/src/Include/cobject.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#error "No <cobject.h> in Python3" +#else +#include <contrib/tools/python/src/Include/cobject.h> +#endif diff --git a/contrib/libs/python/Include/code.h b/contrib/libs/python/Include/code.h index 863de6b03b7..e21d9c3ce38 100644 --- a/contrib/libs/python/Include/code.h +++ b/contrib/libs/python/Include/code.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/code.h> -#else -#include <contrib/tools/python/src/Include/code.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/code.h> +#else +#include <contrib/tools/python/src/Include/code.h> +#endif diff --git a/contrib/libs/python/Include/codecs.h b/contrib/libs/python/Include/codecs.h index 3494dda4bde..52f76040fb4 100644 --- a/contrib/libs/python/Include/codecs.h +++ b/contrib/libs/python/Include/codecs.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/codecs.h> -#else -#include <contrib/tools/python/src/Include/codecs.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/codecs.h> +#else +#include <contrib/tools/python/src/Include/codecs.h> +#endif diff --git a/contrib/libs/python/Include/compile.h b/contrib/libs/python/Include/compile.h index 78c2ea11291..eb3595aab00 100644 --- a/contrib/libs/python/Include/compile.h +++ b/contrib/libs/python/Include/compile.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/compile.h> -#else -#include <contrib/tools/python/src/Include/compile.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/compile.h> +#else +#include <contrib/tools/python/src/Include/compile.h> +#endif diff --git a/contrib/libs/python/Include/complexobject.h b/contrib/libs/python/Include/complexobject.h index 10ce9a2c9cb..2c510c47f42 100644 --- a/contrib/libs/python/Include/complexobject.h +++ b/contrib/libs/python/Include/complexobject.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/complexobject.h> -#else -#include <contrib/tools/python/src/Include/complexobject.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/complexobject.h> +#else +#include <contrib/tools/python/src/Include/complexobject.h> +#endif diff --git a/contrib/libs/python/Include/config_platform.h b/contrib/libs/python/Include/config_platform.h index a424d09fe00..afd9bf51233 100644 --- a/contrib/libs/python/Include/config_platform.h +++ b/contrib/libs/python/Include/config_platform.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#error "No <config_platform.h> in Python3" -#else -#include <contrib/tools/python/src/Include/config_platform.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#error "No <config_platform.h> in Python3" +#else +#include <contrib/tools/python/src/Include/config_platform.h> +#endif diff --git a/contrib/libs/python/Include/datetime.h b/contrib/libs/python/Include/datetime.h index 33ee394fd40..b24acd56380 100644 --- a/contrib/libs/python/Include/datetime.h +++ b/contrib/libs/python/Include/datetime.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/datetime.h> -#else -#include <contrib/tools/python/src/Include/datetime.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/datetime.h> +#else +#include <contrib/tools/python/src/Include/datetime.h> +#endif diff --git a/contrib/libs/python/Include/descrobject.h b/contrib/libs/python/Include/descrobject.h index e5dc606093e..5d450cf256a 100644 --- a/contrib/libs/python/Include/descrobject.h +++ b/contrib/libs/python/Include/descrobject.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/descrobject.h> -#else -#include <contrib/tools/python/src/Include/descrobject.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/descrobject.h> +#else +#include <contrib/tools/python/src/Include/descrobject.h> +#endif diff --git a/contrib/libs/python/Include/dictobject.h b/contrib/libs/python/Include/dictobject.h index 4364a043c64..36026b49629 100644 --- a/contrib/libs/python/Include/dictobject.h +++ b/contrib/libs/python/Include/dictobject.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/dictobject.h> -#else -#include <contrib/tools/python/src/Include/dictobject.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/dictobject.h> +#else +#include <contrib/tools/python/src/Include/dictobject.h> +#endif diff --git a/contrib/libs/python/Include/dtoa.h b/contrib/libs/python/Include/dtoa.h index 4cc8661c6da..d8c51a71f41 100644 --- a/contrib/libs/python/Include/dtoa.h +++ b/contrib/libs/python/Include/dtoa.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 +#pragma once + +#ifdef USE_PYTHON3 #error "No <dtoa.h> in Python3" -#else -#include <contrib/tools/python/src/Include/dtoa.h> -#endif +#else +#include <contrib/tools/python/src/Include/dtoa.h> +#endif diff --git a/contrib/libs/python/Include/dynamic_annotations.h b/contrib/libs/python/Include/dynamic_annotations.h index 093fc3bcc85..0ffe86e787f 100644 --- a/contrib/libs/python/Include/dynamic_annotations.h +++ b/contrib/libs/python/Include/dynamic_annotations.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/dynamic_annotations.h> -#else -#error "No <dynamic_annotations.h> in Python2" -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/dynamic_annotations.h> +#else +#error "No <dynamic_annotations.h> in Python2" +#endif diff --git a/contrib/libs/python/Include/enumobject.h b/contrib/libs/python/Include/enumobject.h index 42953d00379..08d7a42ee4f 100644 --- a/contrib/libs/python/Include/enumobject.h +++ b/contrib/libs/python/Include/enumobject.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/enumobject.h> -#else -#include <contrib/tools/python/src/Include/enumobject.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/enumobject.h> +#else +#include <contrib/tools/python/src/Include/enumobject.h> +#endif diff --git a/contrib/libs/python/Include/errcode.h b/contrib/libs/python/Include/errcode.h index 94f0ec5cf5a..69259ee2f59 100644 --- a/contrib/libs/python/Include/errcode.h +++ b/contrib/libs/python/Include/errcode.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/errcode.h> -#else -#include <contrib/tools/python/src/Include/errcode.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/errcode.h> +#else +#include <contrib/tools/python/src/Include/errcode.h> +#endif diff --git a/contrib/libs/python/Include/eval.h b/contrib/libs/python/Include/eval.h index 62dec98d37b..cc8c657b1e9 100644 --- a/contrib/libs/python/Include/eval.h +++ b/contrib/libs/python/Include/eval.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/eval.h> -#else -#include <contrib/tools/python/src/Include/eval.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/eval.h> +#else +#include <contrib/tools/python/src/Include/eval.h> +#endif diff --git a/contrib/libs/python/Include/fileobject.h b/contrib/libs/python/Include/fileobject.h index 2eb3acf63d8..ac3aa4c7a20 100644 --- a/contrib/libs/python/Include/fileobject.h +++ b/contrib/libs/python/Include/fileobject.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/fileobject.h> -#else -#include <contrib/tools/python/src/Include/fileobject.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/fileobject.h> +#else +#include <contrib/tools/python/src/Include/fileobject.h> +#endif diff --git a/contrib/libs/python/Include/fileutils.h b/contrib/libs/python/Include/fileutils.h index 814ac94a0c3..86ca07a1097 100644 --- a/contrib/libs/python/Include/fileutils.h +++ b/contrib/libs/python/Include/fileutils.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/fileutils.h> -#else -#error "No <fileutils.h> in Python2" -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/fileutils.h> +#else +#error "No <fileutils.h> in Python2" +#endif diff --git a/contrib/libs/python/Include/floatobject.h b/contrib/libs/python/Include/floatobject.h index 32b171c404b..d08083f632b 100644 --- a/contrib/libs/python/Include/floatobject.h +++ b/contrib/libs/python/Include/floatobject.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/floatobject.h> -#else -#include <contrib/tools/python/src/Include/floatobject.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/floatobject.h> +#else +#include <contrib/tools/python/src/Include/floatobject.h> +#endif diff --git a/contrib/libs/python/Include/frameobject.h b/contrib/libs/python/Include/frameobject.h index ab94da0925c..50168e372a2 100644 --- a/contrib/libs/python/Include/frameobject.h +++ b/contrib/libs/python/Include/frameobject.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/frameobject.h> -#else -#include <contrib/tools/python/src/Include/frameobject.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/frameobject.h> +#else +#include <contrib/tools/python/src/Include/frameobject.h> +#endif diff --git a/contrib/libs/python/Include/funcobject.h b/contrib/libs/python/Include/funcobject.h index 012fd11af57..d0bde3deb4f 100644 --- a/contrib/libs/python/Include/funcobject.h +++ b/contrib/libs/python/Include/funcobject.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/funcobject.h> -#else -#include <contrib/tools/python/src/Include/funcobject.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/funcobject.h> +#else +#include <contrib/tools/python/src/Include/funcobject.h> +#endif diff --git a/contrib/libs/python/Include/genobject.h b/contrib/libs/python/Include/genobject.h index 94cc9e0a897..78ce06ddc0c 100644 --- a/contrib/libs/python/Include/genobject.h +++ b/contrib/libs/python/Include/genobject.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/genobject.h> -#else -#include <contrib/tools/python/src/Include/genobject.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/genobject.h> +#else +#include <contrib/tools/python/src/Include/genobject.h> +#endif diff --git a/contrib/libs/python/Include/graminit.h b/contrib/libs/python/Include/graminit.h index 31e5d905512..4b0a5e1a38a 100644 --- a/contrib/libs/python/Include/graminit.h +++ b/contrib/libs/python/Include/graminit.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/graminit.h> -#else -#include <contrib/tools/python/src/Include/graminit.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/graminit.h> +#else +#include <contrib/tools/python/src/Include/graminit.h> +#endif diff --git a/contrib/libs/python/Include/grammar.h b/contrib/libs/python/Include/grammar.h index 37f32c08d3f..d425d1bd753 100644 --- a/contrib/libs/python/Include/grammar.h +++ b/contrib/libs/python/Include/grammar.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/grammar.h> -#else -#include <contrib/tools/python/src/Include/grammar.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/grammar.h> +#else +#include <contrib/tools/python/src/Include/grammar.h> +#endif diff --git a/contrib/libs/python/Include/import.h b/contrib/libs/python/Include/import.h index a1c7f6e9d75..cfa6515cdf6 100644 --- a/contrib/libs/python/Include/import.h +++ b/contrib/libs/python/Include/import.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/import.h> -#else -#include <contrib/tools/python/src/Include/import.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/import.h> +#else +#include <contrib/tools/python/src/Include/import.h> +#endif diff --git a/contrib/libs/python/Include/intobject.h b/contrib/libs/python/Include/intobject.h index 6696f976417..4ec1b915dfa 100644 --- a/contrib/libs/python/Include/intobject.h +++ b/contrib/libs/python/Include/intobject.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#error "No <intobject.h> in Python3" -#else -#include <contrib/tools/python/src/Include/intobject.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#error "No <intobject.h> in Python3" +#else +#include <contrib/tools/python/src/Include/intobject.h> +#endif diff --git a/contrib/libs/python/Include/intrcheck.h b/contrib/libs/python/Include/intrcheck.h index 2ed18eb7e40..68aabf6d480 100644 --- a/contrib/libs/python/Include/intrcheck.h +++ b/contrib/libs/python/Include/intrcheck.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/intrcheck.h> -#else -#include <contrib/tools/python/src/Include/intrcheck.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/intrcheck.h> +#else +#include <contrib/tools/python/src/Include/intrcheck.h> +#endif diff --git a/contrib/libs/python/Include/iterobject.h b/contrib/libs/python/Include/iterobject.h index 489c5b13234..19b24e317ad 100644 --- a/contrib/libs/python/Include/iterobject.h +++ b/contrib/libs/python/Include/iterobject.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/iterobject.h> -#else -#include <contrib/tools/python/src/Include/iterobject.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/iterobject.h> +#else +#include <contrib/tools/python/src/Include/iterobject.h> +#endif diff --git a/contrib/libs/python/Include/listobject.h b/contrib/libs/python/Include/listobject.h index d119dd91957..e16f38f9888 100644 --- a/contrib/libs/python/Include/listobject.h +++ b/contrib/libs/python/Include/listobject.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/listobject.h> -#else -#include <contrib/tools/python/src/Include/listobject.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/listobject.h> +#else +#include <contrib/tools/python/src/Include/listobject.h> +#endif diff --git a/contrib/libs/python/Include/longintrepr.h b/contrib/libs/python/Include/longintrepr.h index 4c6441dad25..01a8c7a79f9 100644 --- a/contrib/libs/python/Include/longintrepr.h +++ b/contrib/libs/python/Include/longintrepr.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/longintrepr.h> -#else -#include <contrib/tools/python/src/Include/longintrepr.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/longintrepr.h> +#else +#include <contrib/tools/python/src/Include/longintrepr.h> +#endif diff --git a/contrib/libs/python/Include/longobject.h b/contrib/libs/python/Include/longobject.h index a2ab1329a4a..18760d63cc8 100644 --- a/contrib/libs/python/Include/longobject.h +++ b/contrib/libs/python/Include/longobject.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/longobject.h> -#else -#include <contrib/tools/python/src/Include/longobject.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/longobject.h> +#else +#include <contrib/tools/python/src/Include/longobject.h> +#endif diff --git a/contrib/libs/python/Include/marshal.h b/contrib/libs/python/Include/marshal.h index cb6129fbc2a..536238ca040 100644 --- a/contrib/libs/python/Include/marshal.h +++ b/contrib/libs/python/Include/marshal.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/marshal.h> -#else -#include <contrib/tools/python/src/Include/marshal.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/marshal.h> +#else +#include <contrib/tools/python/src/Include/marshal.h> +#endif diff --git a/contrib/libs/python/Include/memoryobject.h b/contrib/libs/python/Include/memoryobject.h index b332d449a37..c9941a39622 100644 --- a/contrib/libs/python/Include/memoryobject.h +++ b/contrib/libs/python/Include/memoryobject.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/memoryobject.h> -#else -#include <contrib/tools/python/src/Include/memoryobject.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/memoryobject.h> +#else +#include <contrib/tools/python/src/Include/memoryobject.h> +#endif diff --git a/contrib/libs/python/Include/metagrammar.h b/contrib/libs/python/Include/metagrammar.h index 8aa671542ab..ab897e38202 100644 --- a/contrib/libs/python/Include/metagrammar.h +++ b/contrib/libs/python/Include/metagrammar.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 +#pragma once + +#ifdef USE_PYTHON3 #error "No <metagrammar.h> in Python3" -#else -#include <contrib/tools/python/src/Include/metagrammar.h> -#endif +#else +#include <contrib/tools/python/src/Include/metagrammar.h> +#endif diff --git a/contrib/libs/python/Include/methodobject.h b/contrib/libs/python/Include/methodobject.h index f0d63ca0ecd..12ff79b2e20 100644 --- a/contrib/libs/python/Include/methodobject.h +++ b/contrib/libs/python/Include/methodobject.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/methodobject.h> -#else -#include <contrib/tools/python/src/Include/methodobject.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/methodobject.h> +#else +#include <contrib/tools/python/src/Include/methodobject.h> +#endif diff --git a/contrib/libs/python/Include/modsupport.h b/contrib/libs/python/Include/modsupport.h index e44e9b9c953..61dae25ba3d 100644 --- a/contrib/libs/python/Include/modsupport.h +++ b/contrib/libs/python/Include/modsupport.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/modsupport.h> -#else -#include <contrib/tools/python/src/Include/modsupport.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/modsupport.h> +#else +#include <contrib/tools/python/src/Include/modsupport.h> +#endif diff --git a/contrib/libs/python/Include/moduleobject.h b/contrib/libs/python/Include/moduleobject.h index 983204866c0..d138ab73ca1 100644 --- a/contrib/libs/python/Include/moduleobject.h +++ b/contrib/libs/python/Include/moduleobject.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/moduleobject.h> -#else -#include <contrib/tools/python/src/Include/moduleobject.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/moduleobject.h> +#else +#include <contrib/tools/python/src/Include/moduleobject.h> +#endif diff --git a/contrib/libs/python/Include/namespaceobject.h b/contrib/libs/python/Include/namespaceobject.h index 2481dc0f660..5f4c77c8a47 100644 --- a/contrib/libs/python/Include/namespaceobject.h +++ b/contrib/libs/python/Include/namespaceobject.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/namespaceobject.h> -#else -#error "No <namespaceobject.h> in Python2" -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/namespaceobject.h> +#else +#error "No <namespaceobject.h> in Python2" +#endif diff --git a/contrib/libs/python/Include/node.h b/contrib/libs/python/Include/node.h index 08fcf38b4b6..0f859f8f9e9 100644 --- a/contrib/libs/python/Include/node.h +++ b/contrib/libs/python/Include/node.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/node.h> -#else -#include <contrib/tools/python/src/Include/node.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/node.h> +#else +#include <contrib/tools/python/src/Include/node.h> +#endif diff --git a/contrib/libs/python/Include/object.h b/contrib/libs/python/Include/object.h index c26d54c2ff5..1a7e8a96bdb 100644 --- a/contrib/libs/python/Include/object.h +++ b/contrib/libs/python/Include/object.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/object.h> -#else -#include <contrib/tools/python/src/Include/object.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/object.h> +#else +#include <contrib/tools/python/src/Include/object.h> +#endif diff --git a/contrib/libs/python/Include/objimpl.h b/contrib/libs/python/Include/objimpl.h index 1ab93938d46..d33a4815a5a 100644 --- a/contrib/libs/python/Include/objimpl.h +++ b/contrib/libs/python/Include/objimpl.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/objimpl.h> -#else -#include <contrib/tools/python/src/Include/objimpl.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/objimpl.h> +#else +#include <contrib/tools/python/src/Include/objimpl.h> +#endif diff --git a/contrib/libs/python/Include/odictobject.h b/contrib/libs/python/Include/odictobject.h index 01ca23838dc..a3e7994c128 100644 --- a/contrib/libs/python/Include/odictobject.h +++ b/contrib/libs/python/Include/odictobject.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/odictobject.h> -#else -#error "No <odictobject.h> in Python2" -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/odictobject.h> +#else +#error "No <odictobject.h> in Python2" +#endif diff --git a/contrib/libs/python/Include/opcode.h b/contrib/libs/python/Include/opcode.h index f09d32e1468..add566d1ce0 100644 --- a/contrib/libs/python/Include/opcode.h +++ b/contrib/libs/python/Include/opcode.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/opcode.h> -#else -#include <contrib/tools/python/src/Include/opcode.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/opcode.h> +#else +#include <contrib/tools/python/src/Include/opcode.h> +#endif diff --git a/contrib/libs/python/Include/osdefs.h b/contrib/libs/python/Include/osdefs.h index 901d1809f11..030e1cb4290 100644 --- a/contrib/libs/python/Include/osdefs.h +++ b/contrib/libs/python/Include/osdefs.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/osdefs.h> -#else -#include <contrib/tools/python/src/Include/osdefs.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/osdefs.h> +#else +#include <contrib/tools/python/src/Include/osdefs.h> +#endif diff --git a/contrib/libs/python/Include/osmodule.h b/contrib/libs/python/Include/osmodule.h index d6310d29f1d..0851f3d7f7b 100644 --- a/contrib/libs/python/Include/osmodule.h +++ b/contrib/libs/python/Include/osmodule.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/osmodule.h> -#else -#error "No <osmodule.h> in Python2" -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/osmodule.h> +#else +#error "No <osmodule.h> in Python2" +#endif diff --git a/contrib/libs/python/Include/parsetok.h b/contrib/libs/python/Include/parsetok.h index 6e49d9f3949..5bf491e9078 100644 --- a/contrib/libs/python/Include/parsetok.h +++ b/contrib/libs/python/Include/parsetok.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/parsetok.h> -#else -#include <contrib/tools/python/src/Include/parsetok.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/parsetok.h> +#else +#include <contrib/tools/python/src/Include/parsetok.h> +#endif diff --git a/contrib/libs/python/Include/patchlevel.h b/contrib/libs/python/Include/patchlevel.h index d8316053412..75ce0b8f9ac 100644 --- a/contrib/libs/python/Include/patchlevel.h +++ b/contrib/libs/python/Include/patchlevel.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/patchlevel.h> -#else -#include <contrib/tools/python/src/Include/patchlevel.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/patchlevel.h> +#else +#include <contrib/tools/python/src/Include/patchlevel.h> +#endif diff --git a/contrib/libs/python/Include/pgen.h b/contrib/libs/python/Include/pgen.h index 41a354cc94f..b4a3a7dc8d2 100644 --- a/contrib/libs/python/Include/pgen.h +++ b/contrib/libs/python/Include/pgen.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 +#pragma once + +#ifdef USE_PYTHON3 #error "No <pgen.h> in Python3" -#else -#include <contrib/tools/python/src/Include/pgen.h> -#endif +#else +#include <contrib/tools/python/src/Include/pgen.h> +#endif diff --git a/contrib/libs/python/Include/pgenheaders.h b/contrib/libs/python/Include/pgenheaders.h index 5ff3c27b267..1f859aebadb 100644 --- a/contrib/libs/python/Include/pgenheaders.h +++ b/contrib/libs/python/Include/pgenheaders.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 +#pragma once + +#ifdef USE_PYTHON3 #error "No <pgenheaders.h> in Python3" -#else -#include <contrib/tools/python/src/Include/pgenheaders.h> -#endif +#else +#include <contrib/tools/python/src/Include/pgenheaders.h> +#endif diff --git a/contrib/libs/python/Include/py_curses.h b/contrib/libs/python/Include/py_curses.h index 16433437999..1cea7240fa0 100644 --- a/contrib/libs/python/Include/py_curses.h +++ b/contrib/libs/python/Include/py_curses.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/py_curses.h> -#else -#include <contrib/tools/python/src/Include/py_curses.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/py_curses.h> +#else +#include <contrib/tools/python/src/Include/py_curses.h> +#endif diff --git a/contrib/libs/python/Include/pyarena.h b/contrib/libs/python/Include/pyarena.h index 5bbbf2b69e0..79e39eba83b 100644 --- a/contrib/libs/python/Include/pyarena.h +++ b/contrib/libs/python/Include/pyarena.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/pyarena.h> -#else -#include <contrib/tools/python/src/Include/pyarena.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/pyarena.h> +#else +#include <contrib/tools/python/src/Include/pyarena.h> +#endif diff --git a/contrib/libs/python/Include/pyatomic.h b/contrib/libs/python/Include/pyatomic.h index ed6243fd5fe..36ea5383e2e 100644 --- a/contrib/libs/python/Include/pyatomic.h +++ b/contrib/libs/python/Include/pyatomic.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/pyatomic.h> -#else -#error "No <pyatomic.h> in Python2" -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/pyatomic.h> +#else +#error "No <pyatomic.h> in Python2" +#endif diff --git a/contrib/libs/python/Include/pycapsule.h b/contrib/libs/python/Include/pycapsule.h index 4ac52382b47..7f303ed3610 100644 --- a/contrib/libs/python/Include/pycapsule.h +++ b/contrib/libs/python/Include/pycapsule.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/pycapsule.h> -#else -#include <contrib/tools/python/src/Include/pycapsule.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/pycapsule.h> +#else +#include <contrib/tools/python/src/Include/pycapsule.h> +#endif diff --git a/contrib/libs/python/Include/pyconfig-linux.h b/contrib/libs/python/Include/pyconfig-linux.h index d9d9df21126..de1803b7109 100644 --- a/contrib/libs/python/Include/pyconfig-linux.h +++ b/contrib/libs/python/Include/pyconfig-linux.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/pyconfig-linux.h> -#else -#error "No <pyconfig-linux.h> in Python2" -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/pyconfig-linux.h> +#else +#error "No <pyconfig-linux.h> in Python2" +#endif diff --git a/contrib/libs/python/Include/pyconfig-musl.h b/contrib/libs/python/Include/pyconfig-musl.h index 98e5dfbfd06..66e1339bac8 100644 --- a/contrib/libs/python/Include/pyconfig-musl.h +++ b/contrib/libs/python/Include/pyconfig-musl.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/pyconfig-musl.h> -#else -#error "No <pyconfig-musl.h> in Python2" -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/pyconfig-musl.h> +#else +#error "No <pyconfig-musl.h> in Python2" +#endif diff --git a/contrib/libs/python/Include/pyconfig-osx.h b/contrib/libs/python/Include/pyconfig-osx.h index c4b1b8574bf..8ee6b6de2b5 100644 --- a/contrib/libs/python/Include/pyconfig-osx.h +++ b/contrib/libs/python/Include/pyconfig-osx.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/pyconfig-osx.h> -#else -#error "No <pyconfig-osx.h> in Python2" -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/pyconfig-osx.h> +#else +#error "No <pyconfig-osx.h> in Python2" +#endif diff --git a/contrib/libs/python/Include/pyconfig.cygwin.h b/contrib/libs/python/Include/pyconfig.cygwin.h index 19756b748e1..930901d89b0 100644 --- a/contrib/libs/python/Include/pyconfig.cygwin.h +++ b/contrib/libs/python/Include/pyconfig.cygwin.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#error "No <pyconfig.cygwin.h> in Python3" -#else -#include <contrib/tools/python/src/Include/pyconfig.cygwin.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#error "No <pyconfig.cygwin.h> in Python3" +#else +#include <contrib/tools/python/src/Include/pyconfig.cygwin.h> +#endif diff --git a/contrib/libs/python/Include/pyconfig.darwin.h b/contrib/libs/python/Include/pyconfig.darwin.h index 0b7c6a87b59..eeb58178bf4 100644 --- a/contrib/libs/python/Include/pyconfig.darwin.h +++ b/contrib/libs/python/Include/pyconfig.darwin.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#error "No <pyconfig.darwin.h> in Python3" -#else -#include <contrib/tools/python/src/Include/pyconfig.darwin.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#error "No <pyconfig.darwin.h> in Python3" +#else +#include <contrib/tools/python/src/Include/pyconfig.darwin.h> +#endif diff --git a/contrib/libs/python/Include/pyconfig.freebsd.h b/contrib/libs/python/Include/pyconfig.freebsd.h index 0a0c30f6a6f..e6d5961435a 100644 --- a/contrib/libs/python/Include/pyconfig.freebsd.h +++ b/contrib/libs/python/Include/pyconfig.freebsd.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#error "No <pyconfig.freebsd.h> in Python3" -#else -#include <contrib/tools/python/src/Include/pyconfig.freebsd.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#error "No <pyconfig.freebsd.h> in Python3" +#else +#include <contrib/tools/python/src/Include/pyconfig.freebsd.h> +#endif diff --git a/contrib/libs/python/Include/pyconfig.h b/contrib/libs/python/Include/pyconfig.h index d24d4b45352..3b13edb2ee6 100644 --- a/contrib/libs/python/Include/pyconfig.h +++ b/contrib/libs/python/Include/pyconfig.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/pyconfig.h> -#else -#include <contrib/tools/python/src/Include/pyconfig.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/pyconfig.h> +#else +#include <contrib/tools/python/src/Include/pyconfig.h> +#endif diff --git a/contrib/libs/python/Include/pyconfig.ios.arm64.h b/contrib/libs/python/Include/pyconfig.ios.arm64.h index 5adb42c762a..0dac2ee7acc 100644 --- a/contrib/libs/python/Include/pyconfig.ios.arm64.h +++ b/contrib/libs/python/Include/pyconfig.ios.arm64.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#error "No <pyconfig.ios.arm64.h> in Python3" -#else -#include <contrib/tools/python/src/Include/pyconfig.ios.arm64.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#error "No <pyconfig.ios.arm64.h> in Python3" +#else +#include <contrib/tools/python/src/Include/pyconfig.ios.arm64.h> +#endif diff --git a/contrib/libs/python/Include/pyconfig.ios.armv7.h b/contrib/libs/python/Include/pyconfig.ios.armv7.h index fcbe6a71e70..ec08c5eca56 100644 --- a/contrib/libs/python/Include/pyconfig.ios.armv7.h +++ b/contrib/libs/python/Include/pyconfig.ios.armv7.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#error "No <pyconfig.ios.armv7.h> in Python3" -#else -#include <contrib/tools/python/src/Include/pyconfig.ios.armv7.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#error "No <pyconfig.ios.armv7.h> in Python3" +#else +#include <contrib/tools/python/src/Include/pyconfig.ios.armv7.h> +#endif diff --git a/contrib/libs/python/Include/pyconfig.ios.i386.h b/contrib/libs/python/Include/pyconfig.ios.i386.h index eaba479035f..98649c420f2 100644 --- a/contrib/libs/python/Include/pyconfig.ios.i386.h +++ b/contrib/libs/python/Include/pyconfig.ios.i386.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#error "No <pyconfig.ios.i386.h> in Python3" -#else -#include <contrib/tools/python/src/Include/pyconfig.ios.i386.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#error "No <pyconfig.ios.i386.h> in Python3" +#else +#include <contrib/tools/python/src/Include/pyconfig.ios.i386.h> +#endif diff --git a/contrib/libs/python/Include/pyconfig.ios.x86_64.h b/contrib/libs/python/Include/pyconfig.ios.x86_64.h index 45727828d4c..dc87f0ed868 100644 --- a/contrib/libs/python/Include/pyconfig.ios.x86_64.h +++ b/contrib/libs/python/Include/pyconfig.ios.x86_64.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#error "No <pyconfig.ios.x86_64.h> in Python3" -#else -#include <contrib/tools/python/src/Include/pyconfig.ios.x86_64.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#error "No <pyconfig.ios.x86_64.h> in Python3" +#else +#include <contrib/tools/python/src/Include/pyconfig.ios.x86_64.h> +#endif diff --git a/contrib/libs/python/Include/pyconfig.linux.h b/contrib/libs/python/Include/pyconfig.linux.h index 9d20ea36575..18ebf9c48c7 100644 --- a/contrib/libs/python/Include/pyconfig.linux.h +++ b/contrib/libs/python/Include/pyconfig.linux.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#error "No <pyconfig.linux.h> in Python3" -#else -#include <contrib/tools/python/src/Include/pyconfig.linux.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#error "No <pyconfig.linux.h> in Python3" +#else +#include <contrib/tools/python/src/Include/pyconfig.linux.h> +#endif diff --git a/contrib/libs/python/Include/pyconfig.win32.h b/contrib/libs/python/Include/pyconfig.win32.h index 3936c2b2abd..6c5c5ae32ee 100644 --- a/contrib/libs/python/Include/pyconfig.win32.h +++ b/contrib/libs/python/Include/pyconfig.win32.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#error "No <pyconfig.win32.h> in Python3" -#else -#include <contrib/tools/python/src/Include/pyconfig.win32.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#error "No <pyconfig.win32.h> in Python3" +#else +#include <contrib/tools/python/src/Include/pyconfig.win32.h> +#endif diff --git a/contrib/libs/python/Include/pyctype.h b/contrib/libs/python/Include/pyctype.h index bb5181894a8..8b25c6e4ee1 100644 --- a/contrib/libs/python/Include/pyctype.h +++ b/contrib/libs/python/Include/pyctype.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/pyctype.h> -#else -#include <contrib/tools/python/src/Include/pyctype.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/pyctype.h> +#else +#include <contrib/tools/python/src/Include/pyctype.h> +#endif diff --git a/contrib/libs/python/Include/pydebug.h b/contrib/libs/python/Include/pydebug.h index 29e47a40918..5619b0b9071 100644 --- a/contrib/libs/python/Include/pydebug.h +++ b/contrib/libs/python/Include/pydebug.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/pydebug.h> -#else -#include <contrib/tools/python/src/Include/pydebug.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/pydebug.h> +#else +#include <contrib/tools/python/src/Include/pydebug.h> +#endif diff --git a/contrib/libs/python/Include/pydtrace.h b/contrib/libs/python/Include/pydtrace.h index e517c2ee4fe..170d5e0ca26 100644 --- a/contrib/libs/python/Include/pydtrace.h +++ b/contrib/libs/python/Include/pydtrace.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/pydtrace.h> -#else -#error "No <pydtrace.h> in Python2" -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/pydtrace.h> +#else +#error "No <pydtrace.h> in Python2" +#endif diff --git a/contrib/libs/python/Include/pyerrors.h b/contrib/libs/python/Include/pyerrors.h index fd0638e07d1..587690a2b28 100644 --- a/contrib/libs/python/Include/pyerrors.h +++ b/contrib/libs/python/Include/pyerrors.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/pyerrors.h> -#else -#include <contrib/tools/python/src/Include/pyerrors.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/pyerrors.h> +#else +#include <contrib/tools/python/src/Include/pyerrors.h> +#endif diff --git a/contrib/libs/python/Include/pyexpat.h b/contrib/libs/python/Include/pyexpat.h index 5812a8fd32a..e9021bf0703 100644 --- a/contrib/libs/python/Include/pyexpat.h +++ b/contrib/libs/python/Include/pyexpat.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/pyexpat.h> -#else -#include <contrib/tools/python/src/Include/pyexpat.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/pyexpat.h> +#else +#include <contrib/tools/python/src/Include/pyexpat.h> +#endif diff --git a/contrib/libs/python/Include/pyfpe.h b/contrib/libs/python/Include/pyfpe.h index 41a49db7f3c..b9ee7aa43f5 100644 --- a/contrib/libs/python/Include/pyfpe.h +++ b/contrib/libs/python/Include/pyfpe.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/pyfpe.h> -#else -#include <contrib/tools/python/src/Include/pyfpe.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/pyfpe.h> +#else +#include <contrib/tools/python/src/Include/pyfpe.h> +#endif diff --git a/contrib/libs/python/Include/pygetopt.h b/contrib/libs/python/Include/pygetopt.h index 06ee570cd0b..3e591b03ce0 100644 --- a/contrib/libs/python/Include/pygetopt.h +++ b/contrib/libs/python/Include/pygetopt.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 +#pragma once + +#ifdef USE_PYTHON3 #error "No <pygetopt.h> in Python3" -#else -#include <contrib/tools/python/src/Include/pygetopt.h> -#endif +#else +#include <contrib/tools/python/src/Include/pygetopt.h> +#endif diff --git a/contrib/libs/python/Include/pyhash.h b/contrib/libs/python/Include/pyhash.h index 7a9690a5890..847428d5687 100644 --- a/contrib/libs/python/Include/pyhash.h +++ b/contrib/libs/python/Include/pyhash.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/pyhash.h> -#else -#error "No <pyhash.h> in Python2" -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/pyhash.h> +#else +#error "No <pyhash.h> in Python2" +#endif diff --git a/contrib/libs/python/Include/pylifecycle.h b/contrib/libs/python/Include/pylifecycle.h index b5f3cac8a55..7cffd7cc749 100644 --- a/contrib/libs/python/Include/pylifecycle.h +++ b/contrib/libs/python/Include/pylifecycle.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/pylifecycle.h> -#else -#error "No <pylifecycle.h> in Python2" -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/pylifecycle.h> +#else +#error "No <pylifecycle.h> in Python2" +#endif diff --git a/contrib/libs/python/Include/pymacconfig.h b/contrib/libs/python/Include/pymacconfig.h index fcdddc1ca4e..452a8db2499 100644 --- a/contrib/libs/python/Include/pymacconfig.h +++ b/contrib/libs/python/Include/pymacconfig.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/pymacconfig.h> -#else -#include <contrib/tools/python/src/Include/pymacconfig.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/pymacconfig.h> +#else +#include <contrib/tools/python/src/Include/pymacconfig.h> +#endif diff --git a/contrib/libs/python/Include/pymacro.h b/contrib/libs/python/Include/pymacro.h index 0b35bdf68ee..ba64609d322 100644 --- a/contrib/libs/python/Include/pymacro.h +++ b/contrib/libs/python/Include/pymacro.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/pymacro.h> -#else -#error "No <pymacro.h> in Python2" -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/pymacro.h> +#else +#error "No <pymacro.h> in Python2" +#endif diff --git a/contrib/libs/python/Include/pymactoolbox.h b/contrib/libs/python/Include/pymactoolbox.h index e735deff8a8..320a4920a4c 100644 --- a/contrib/libs/python/Include/pymactoolbox.h +++ b/contrib/libs/python/Include/pymactoolbox.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#error "No <pymactoolbox.h> in Python3" -#else -#include <contrib/tools/python/src/Include/pymactoolbox.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#error "No <pymactoolbox.h> in Python3" +#else +#include <contrib/tools/python/src/Include/pymactoolbox.h> +#endif diff --git a/contrib/libs/python/Include/pymath.h b/contrib/libs/python/Include/pymath.h index 952b86c6e46..a83f248550a 100644 --- a/contrib/libs/python/Include/pymath.h +++ b/contrib/libs/python/Include/pymath.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/pymath.h> -#else -#include <contrib/tools/python/src/Include/pymath.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/pymath.h> +#else +#include <contrib/tools/python/src/Include/pymath.h> +#endif diff --git a/contrib/libs/python/Include/pymem.h b/contrib/libs/python/Include/pymem.h index d17ba806279..780aa553e13 100644 --- a/contrib/libs/python/Include/pymem.h +++ b/contrib/libs/python/Include/pymem.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/pymem.h> -#else -#include <contrib/tools/python/src/Include/pymem.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/pymem.h> +#else +#include <contrib/tools/python/src/Include/pymem.h> +#endif diff --git a/contrib/libs/python/Include/pyport.h b/contrib/libs/python/Include/pyport.h index 9f75a32106e..a32beac0c10 100644 --- a/contrib/libs/python/Include/pyport.h +++ b/contrib/libs/python/Include/pyport.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/pyport.h> -#else -#include <contrib/tools/python/src/Include/pyport.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/pyport.h> +#else +#include <contrib/tools/python/src/Include/pyport.h> +#endif diff --git a/contrib/libs/python/Include/pystate.h b/contrib/libs/python/Include/pystate.h index 5f1ad1d4e72..6601f2591b1 100644 --- a/contrib/libs/python/Include/pystate.h +++ b/contrib/libs/python/Include/pystate.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/pystate.h> -#else -#include <contrib/tools/python/src/Include/pystate.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/pystate.h> +#else +#include <contrib/tools/python/src/Include/pystate.h> +#endif diff --git a/contrib/libs/python/Include/pystrcmp.h b/contrib/libs/python/Include/pystrcmp.h index 38dead26dd1..748b61d534e 100644 --- a/contrib/libs/python/Include/pystrcmp.h +++ b/contrib/libs/python/Include/pystrcmp.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/pystrcmp.h> -#else -#include <contrib/tools/python/src/Include/pystrcmp.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/pystrcmp.h> +#else +#include <contrib/tools/python/src/Include/pystrcmp.h> +#endif diff --git a/contrib/libs/python/Include/pystrhex.h b/contrib/libs/python/Include/pystrhex.h index f17fb48e456..a8a41a1b569 100644 --- a/contrib/libs/python/Include/pystrhex.h +++ b/contrib/libs/python/Include/pystrhex.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/pystrhex.h> -#else -#error "No <pystrhex.h> in Python2" -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/pystrhex.h> +#else +#error "No <pystrhex.h> in Python2" +#endif diff --git a/contrib/libs/python/Include/pystrtod.h b/contrib/libs/python/Include/pystrtod.h index 7494b5abe0d..70d9aa343e7 100644 --- a/contrib/libs/python/Include/pystrtod.h +++ b/contrib/libs/python/Include/pystrtod.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/pystrtod.h> -#else -#include <contrib/tools/python/src/Include/pystrtod.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/pystrtod.h> +#else +#include <contrib/tools/python/src/Include/pystrtod.h> +#endif diff --git a/contrib/libs/python/Include/pythonrun.h b/contrib/libs/python/Include/pythonrun.h index 896d1b39786..381610c54ea 100644 --- a/contrib/libs/python/Include/pythonrun.h +++ b/contrib/libs/python/Include/pythonrun.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/pythonrun.h> -#else -#include <contrib/tools/python/src/Include/pythonrun.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/pythonrun.h> +#else +#include <contrib/tools/python/src/Include/pythonrun.h> +#endif diff --git a/contrib/libs/python/Include/pythread.h b/contrib/libs/python/Include/pythread.h index c0107779da8..3f3eae9530b 100644 --- a/contrib/libs/python/Include/pythread.h +++ b/contrib/libs/python/Include/pythread.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/pythread.h> -#else -#include <contrib/tools/python/src/Include/pythread.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/pythread.h> +#else +#include <contrib/tools/python/src/Include/pythread.h> +#endif diff --git a/contrib/libs/python/Include/pytime.h b/contrib/libs/python/Include/pytime.h index f7e61f9e330..7412fa86328 100644 --- a/contrib/libs/python/Include/pytime.h +++ b/contrib/libs/python/Include/pytime.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/pytime.h> -#else -#error "No <pytime.h> in Python2" -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/pytime.h> +#else +#error "No <pytime.h> in Python2" +#endif diff --git a/contrib/libs/python/Include/rangeobject.h b/contrib/libs/python/Include/rangeobject.h index 006604bb5e5..dc0b4a219b3 100644 --- a/contrib/libs/python/Include/rangeobject.h +++ b/contrib/libs/python/Include/rangeobject.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/rangeobject.h> -#else -#include <contrib/tools/python/src/Include/rangeobject.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/rangeobject.h> +#else +#include <contrib/tools/python/src/Include/rangeobject.h> +#endif diff --git a/contrib/libs/python/Include/setobject.h b/contrib/libs/python/Include/setobject.h index dc8288f6bc1..5f09504d2b3 100644 --- a/contrib/libs/python/Include/setobject.h +++ b/contrib/libs/python/Include/setobject.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/setobject.h> -#else -#include <contrib/tools/python/src/Include/setobject.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/setobject.h> +#else +#include <contrib/tools/python/src/Include/setobject.h> +#endif diff --git a/contrib/libs/python/Include/sliceobject.h b/contrib/libs/python/Include/sliceobject.h index b30a687fa14..b124a7a15ba 100644 --- a/contrib/libs/python/Include/sliceobject.h +++ b/contrib/libs/python/Include/sliceobject.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/sliceobject.h> -#else -#include <contrib/tools/python/src/Include/sliceobject.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/sliceobject.h> +#else +#include <contrib/tools/python/src/Include/sliceobject.h> +#endif diff --git a/contrib/libs/python/Include/stringobject.h b/contrib/libs/python/Include/stringobject.h index e56cb06cfaa..374c66667bd 100644 --- a/contrib/libs/python/Include/stringobject.h +++ b/contrib/libs/python/Include/stringobject.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#error "No <stringobject.h> in Python3" -#else -#include <contrib/tools/python/src/Include/stringobject.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#error "No <stringobject.h> in Python3" +#else +#include <contrib/tools/python/src/Include/stringobject.h> +#endif diff --git a/contrib/libs/python/Include/structmember.h b/contrib/libs/python/Include/structmember.h index c030e255a3d..ab8d9c29245 100644 --- a/contrib/libs/python/Include/structmember.h +++ b/contrib/libs/python/Include/structmember.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/structmember.h> -#else -#include <contrib/tools/python/src/Include/structmember.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/structmember.h> +#else +#include <contrib/tools/python/src/Include/structmember.h> +#endif diff --git a/contrib/libs/python/Include/structseq.h b/contrib/libs/python/Include/structseq.h index a04da108d26..02cadaaefe4 100644 --- a/contrib/libs/python/Include/structseq.h +++ b/contrib/libs/python/Include/structseq.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/structseq.h> -#else -#include <contrib/tools/python/src/Include/structseq.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/structseq.h> +#else +#include <contrib/tools/python/src/Include/structseq.h> +#endif diff --git a/contrib/libs/python/Include/symtable.h b/contrib/libs/python/Include/symtable.h index 7ba57071654..55220566704 100644 --- a/contrib/libs/python/Include/symtable.h +++ b/contrib/libs/python/Include/symtable.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/symtable.h> -#else -#include <contrib/tools/python/src/Include/symtable.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/symtable.h> +#else +#include <contrib/tools/python/src/Include/symtable.h> +#endif diff --git a/contrib/libs/python/Include/sysmodule.h b/contrib/libs/python/Include/sysmodule.h index dcf7a9bf05e..6b50a48c2d7 100644 --- a/contrib/libs/python/Include/sysmodule.h +++ b/contrib/libs/python/Include/sysmodule.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/sysmodule.h> -#else -#include <contrib/tools/python/src/Include/sysmodule.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/sysmodule.h> +#else +#include <contrib/tools/python/src/Include/sysmodule.h> +#endif diff --git a/contrib/libs/python/Include/timefuncs.h b/contrib/libs/python/Include/timefuncs.h index 1b1828b17a0..409ee6df194 100644 --- a/contrib/libs/python/Include/timefuncs.h +++ b/contrib/libs/python/Include/timefuncs.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#error "No <timefuncs.h> in Python3" -#else -#include <contrib/tools/python/src/Include/timefuncs.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#error "No <timefuncs.h> in Python3" +#else +#include <contrib/tools/python/src/Include/timefuncs.h> +#endif diff --git a/contrib/libs/python/Include/token.h b/contrib/libs/python/Include/token.h index de1d0dc6693..cef4f27bc83 100644 --- a/contrib/libs/python/Include/token.h +++ b/contrib/libs/python/Include/token.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/token.h> -#else -#include <contrib/tools/python/src/Include/token.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/token.h> +#else +#include <contrib/tools/python/src/Include/token.h> +#endif diff --git a/contrib/libs/python/Include/traceback.h b/contrib/libs/python/Include/traceback.h index 55e6e0f98fa..284fc8ab7f5 100644 --- a/contrib/libs/python/Include/traceback.h +++ b/contrib/libs/python/Include/traceback.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/traceback.h> -#else -#include <contrib/tools/python/src/Include/traceback.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/traceback.h> +#else +#include <contrib/tools/python/src/Include/traceback.h> +#endif diff --git a/contrib/libs/python/Include/tupleobject.h b/contrib/libs/python/Include/tupleobject.h index acc7731d4ee..8b924b9b4c9 100644 --- a/contrib/libs/python/Include/tupleobject.h +++ b/contrib/libs/python/Include/tupleobject.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/tupleobject.h> -#else -#include <contrib/tools/python/src/Include/tupleobject.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/tupleobject.h> +#else +#include <contrib/tools/python/src/Include/tupleobject.h> +#endif diff --git a/contrib/libs/python/Include/typeslots.h b/contrib/libs/python/Include/typeslots.h index 1e8026e12b6..4dd000ae3c5 100644 --- a/contrib/libs/python/Include/typeslots.h +++ b/contrib/libs/python/Include/typeslots.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/typeslots.h> -#else -#error "No <typeslots.h> in Python2" -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/typeslots.h> +#else +#error "No <typeslots.h> in Python2" +#endif diff --git a/contrib/libs/python/Include/ucnhash.h b/contrib/libs/python/Include/ucnhash.h index d3a784f50b9..42412a87b49 100644 --- a/contrib/libs/python/Include/ucnhash.h +++ b/contrib/libs/python/Include/ucnhash.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/ucnhash.h> -#else -#include <contrib/tools/python/src/Include/ucnhash.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/ucnhash.h> +#else +#include <contrib/tools/python/src/Include/ucnhash.h> +#endif diff --git a/contrib/libs/python/Include/unicodeobject.h b/contrib/libs/python/Include/unicodeobject.h index 9b531b5d2cb..172af650e1c 100644 --- a/contrib/libs/python/Include/unicodeobject.h +++ b/contrib/libs/python/Include/unicodeobject.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/unicodeobject.h> -#else -#include <contrib/tools/python/src/Include/unicodeobject.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/unicodeobject.h> +#else +#include <contrib/tools/python/src/Include/unicodeobject.h> +#endif diff --git a/contrib/libs/python/Include/warnings.h b/contrib/libs/python/Include/warnings.h index a2b37eba836..d5deac5bc51 100644 --- a/contrib/libs/python/Include/warnings.h +++ b/contrib/libs/python/Include/warnings.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/warnings.h> -#else -#include <contrib/tools/python/src/Include/warnings.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/warnings.h> +#else +#include <contrib/tools/python/src/Include/warnings.h> +#endif diff --git a/contrib/libs/python/Include/weakrefobject.h b/contrib/libs/python/Include/weakrefobject.h index 61f499869f1..3fed3fa764d 100644 --- a/contrib/libs/python/Include/weakrefobject.h +++ b/contrib/libs/python/Include/weakrefobject.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/weakrefobject.h> -#else -#include <contrib/tools/python/src/Include/weakrefobject.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/weakrefobject.h> +#else +#include <contrib/tools/python/src/Include/weakrefobject.h> +#endif diff --git a/contrib/libs/python/README.md b/contrib/libs/python/README.md index 9b22a9b761c..cd122b92b39 100644 --- a/contrib/libs/python/README.md +++ b/contrib/libs/python/README.md @@ -1,9 +1,9 @@ -This include-only library enables simultaneous bindings into Python2 and Python3 with single build. - -It provides the following: -- Let dependencies to headers from both Pythons be seen at once during ya make dependency computation. This makes depenency graph more stable. -- Steers build to proper Python headers depending on mode in which binding is built. -- Adds proper Python library to link. - -Headers are automatically generated from Python2 and Python3 headers using gen_includes.py script - +This include-only library enables simultaneous bindings into Python2 and Python3 with single build. + +It provides the following: +- Let dependencies to headers from both Pythons be seen at once during ya make dependency computation. This makes depenency graph more stable. +- Steers build to proper Python headers depending on mode in which binding is built. +- Adds proper Python library to link. + +Headers are automatically generated from Python2 and Python3 headers using gen_includes.py script + diff --git a/contrib/libs/python/gen_includes.py b/contrib/libs/python/gen_includes.py index bc73e6e826e..0e024cc49d8 100644 --- a/contrib/libs/python/gen_includes.py +++ b/contrib/libs/python/gen_includes.py @@ -1,24 +1,24 @@ -import sys -import os -import errno -from os import listdir +import sys +import os +import errno +from os import listdir from os.path import dirname, relpath, join - -def ensure_dir_exists(path): - try: - os.makedirs(path) - except OSError as e: - if e.errno == errno.EEXIST and os.path.isdir(path): - pass - else: - raise - -def make_dir(directory): - if not os.path.exists(directory): - os.makedirs(directory) - +def ensure_dir_exists(path): + try: + os.makedirs(path) + except OSError as e: + if e.errno == errno.EEXIST and os.path.isdir(path): + pass + else: + raise + + +def make_dir(directory): + if not os.path.exists(directory): + os.makedirs(directory) + def files(directory): for dirpath, dirnames, filenames in os.walk(directory): @@ -26,22 +26,22 @@ def files(directory): yield relpath(join(dirpath, name), directory) -def headers_set(directory): +def headers_set(directory): return { f for f in files(directory) if f.endswith('.h') and not f.startswith('internal/') } - -if __name__ == "__main__": - - python2_path = sys.argv[1] - python3_path = sys.argv[2] - output_path = sys.argv[3] - - ensure_dir_exists(join('.', python2_path)) - ensure_dir_exists(join('.', python3_path)) - + +if __name__ == "__main__": + + python2_path = sys.argv[1] + python3_path = sys.argv[2] + output_path = sys.argv[3] + + ensure_dir_exists(join('.', python2_path)) + ensure_dir_exists(join('.', python3_path)) + only_headers2 = headers_set(python2_path) only_headers3 = headers_set(python3_path) all_headers = only_headers2 | only_headers3 diff --git a/contrib/libs/python/ut/lib/test.cpp b/contrib/libs/python/ut/lib/test.cpp index 824b7460e17..e3aabc8889f 100644 --- a/contrib/libs/python/ut/lib/test.cpp +++ b/contrib/libs/python/ut/lib/test.cpp @@ -1,21 +1,21 @@ -#include "test.h" - -#include <Python.h> +#include "test.h" + +#include <Python.h> #include <library/cpp/testing/unittest/registar.h> - -TTestPyInvoker::TTestPyInvoker() {} - -const char* TTestPyInvoker::GetVersion() { - Py_Initialize(); - - auto* module = PyImport_ImportModule("sys"); - UNIT_ASSERT(module != nullptr); - - auto* versionObj = PyObject_GetAttrString(module, "version"); - if (versionObj == nullptr) { - Py_DECREF(module); - UNIT_ASSERT(versionObj != nullptr); - } - - return Py_GetVersion(); -} + +TTestPyInvoker::TTestPyInvoker() {} + +const char* TTestPyInvoker::GetVersion() { + Py_Initialize(); + + auto* module = PyImport_ImportModule("sys"); + UNIT_ASSERT(module != nullptr); + + auto* versionObj = PyObject_GetAttrString(module, "version"); + if (versionObj == nullptr) { + Py_DECREF(module); + UNIT_ASSERT(versionObj != nullptr); + } + + return Py_GetVersion(); +} diff --git a/contrib/libs/python/ut/lib/test.h b/contrib/libs/python/ut/lib/test.h index 4bdbe672ac1..1bf824ebea8 100644 --- a/contrib/libs/python/ut/lib/test.h +++ b/contrib/libs/python/ut/lib/test.h @@ -1,7 +1,7 @@ -#pragma once - -class TTestPyInvoker { -public: - TTestPyInvoker(); - const char* GetVersion(); -}; +#pragma once + +class TTestPyInvoker { +public: + TTestPyInvoker(); + const char* GetVersion(); +}; diff --git a/contrib/libs/python/ut/lib/ya.make b/contrib/libs/python/ut/lib/ya.make index a67c3e254eb..cfa0aaa612f 100644 --- a/contrib/libs/python/ut/lib/ya.make +++ b/contrib/libs/python/ut/lib/ya.make @@ -1,17 +1,17 @@ -OWNER(spreis) - -PY23_LIBRARY() +OWNER(spreis) + +PY23_LIBRARY() WITHOUT_LICENSE_TEXTS() LICENSE(YandexOpen) -PEERDIR( +PEERDIR( library/cpp/testing/unittest -) +) SRCS( test.cpp ) -END() +END() diff --git a/contrib/libs/python/ut/py2/use.cpp b/contrib/libs/python/ut/py2/use.cpp index 853fb452dcc..a4a2c8d9bb2 100644 --- a/contrib/libs/python/ut/py2/use.cpp +++ b/contrib/libs/python/ut/py2/use.cpp @@ -1,10 +1,10 @@ -#include <contrib/libs/python/ut/lib/test.h> +#include <contrib/libs/python/ut/lib/test.h> #include <library/cpp/testing/unittest/registar.h> - -Y_UNIT_TEST_SUITE(TestPy3Binding) { - Y_UNIT_TEST(version) { - TTestPyInvoker invoker; - UNIT_ASSERT_EQUAL(invoker.GetVersion()[0], '2'); - } -} - + +Y_UNIT_TEST_SUITE(TestPy3Binding) { + Y_UNIT_TEST(version) { + TTestPyInvoker invoker; + UNIT_ASSERT_EQUAL(invoker.GetVersion()[0], '2'); + } +} + diff --git a/contrib/libs/python/ut/py2/ya.make b/contrib/libs/python/ut/py2/ya.make index 3962a7664e4..9c5c8247610 100644 --- a/contrib/libs/python/ut/py2/ya.make +++ b/contrib/libs/python/ut/py2/ya.make @@ -1,9 +1,9 @@ -OWNER(spreis) - -UNITTEST() -SRCS(use.cpp) - -PEERDIR( - contrib/libs/python/ut/lib -) -END() +OWNER(spreis) + +UNITTEST() +SRCS(use.cpp) + +PEERDIR( + contrib/libs/python/ut/lib +) +END() diff --git a/contrib/libs/python/ut/py3/use.cpp b/contrib/libs/python/ut/py3/use.cpp index e532ca89e7f..8a2531bcc12 100644 --- a/contrib/libs/python/ut/py3/use.cpp +++ b/contrib/libs/python/ut/py3/use.cpp @@ -1,10 +1,10 @@ -#include <contrib/libs/python/ut/lib/test.h> +#include <contrib/libs/python/ut/lib/test.h> #include <library/cpp/testing/unittest/registar.h> - -Y_UNIT_TEST_SUITE(TestPy3Binding) { - Y_UNIT_TEST(version) { - TTestPyInvoker invoker; - UNIT_ASSERT_EQUAL(invoker.GetVersion()[0], '3'); - } -} - + +Y_UNIT_TEST_SUITE(TestPy3Binding) { + Y_UNIT_TEST(version) { + TTestPyInvoker invoker; + UNIT_ASSERT_EQUAL(invoker.GetVersion()[0], '3'); + } +} + diff --git a/contrib/libs/python/ut/py3/ya.make b/contrib/libs/python/ut/py3/ya.make index af8407938cb..df6d4fe767c 100644 --- a/contrib/libs/python/ut/py3/ya.make +++ b/contrib/libs/python/ut/py3/ya.make @@ -1,10 +1,10 @@ -OWNER(spreis) - -UNITTEST() -USE_PYTHON3() -SRCS(use.cpp) - -PEERDIR( - contrib/libs/python/ut/lib -) -END() +OWNER(spreis) + +UNITTEST() +USE_PYTHON3() +SRCS(use.cpp) + +PEERDIR( + contrib/libs/python/ut/lib +) +END() diff --git a/contrib/libs/python/ut/ya.make b/contrib/libs/python/ut/ya.make index 5fe3576e066..4fea35153a6 100644 --- a/contrib/libs/python/ut/ya.make +++ b/contrib/libs/python/ut/ya.make @@ -1,7 +1,7 @@ -OWNER(spreis) - -RECURSE( - lib - py2 - py3 -)
\ No newline at end of file +OWNER(spreis) + +RECURSE( + lib + py2 + py3 +)
\ No newline at end of file diff --git a/contrib/libs/python/ya.make b/contrib/libs/python/ya.make index df7c89d8826..20a57f4b480 100644 --- a/contrib/libs/python/ya.make +++ b/contrib/libs/python/ya.make @@ -3,16 +3,16 @@ OWNER( orivej g:contrib ) - -PY23_LIBRARY() - + +PY23_LIBRARY() + LICENSE(YandexOpen) LICENSE_TEXTS(.yandex_meta/licenses.list.txt) -NO_PYTHON_INCLUDES() - -IF (USE_ARCADIA_PYTHON) +NO_PYTHON_INCLUDES() + +IF (USE_ARCADIA_PYTHON) PEERDIR( contrib/libs/python/Include library/python/symbols/module @@ -29,21 +29,21 @@ IF (USE_ARCADIA_PYTHON) contrib/tools/python/lib library/python/runtime ) - ELSE() + ELSE() PEERDIR( contrib/tools/python3/lib library/python/runtime_py3 ) - ENDIF() -ELSE() - IF (USE_SYSTEM_PYTHON) + ENDIF() +ELSE() + IF (USE_SYSTEM_PYTHON) PEERDIR( build/platform/python ) - ELSE() - CFLAGS(GLOBAL $PYTHON_INCLUDE) - ENDIF() -ENDIF() + ELSE() + CFLAGS(GLOBAL $PYTHON_INCLUDE) + ENDIF() +ENDIF() END() |