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 | bcd1126cbd5d445cd0665d295198aa39c6ab8cbe (patch) | |
tree | d41d29a041d5733ef148335290dbb817b197d4cd /contrib/libs/python | |
parent | 986cb5d624f352524bfa0c42c9a7695235cdaa41 (diff) | |
download | ydb-bcd1126cbd5d445cd0665d295198aa39c6ab8cbe.tar.gz |
Restoring authorship annotation for <spreis@yandex-team.ru>. Commit 1 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 7628fd5a2a1..eb8881242c7 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 5aa4c0b515a..2b2099e9439 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 3073b25e256..a41ac2b272a 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 acd0f68a6a6..1e4a913828a 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 2f73d8ca486..9e6e361386e 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 124a7c14972..283cbbd86b0 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 7e7a26c769c..a4e3fbd0599 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 0cd2a7ac76b..3abe078c861 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 9ab8bbe43c8..59a6c1814d2 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 aed38f50a98..8218812e796 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 0e69010be76..463569e3945 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 f74e146029c..7468e1e129d 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 ca972c3df20..307c6b432d2 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 3a8a908d561..07c32840e1e 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 3345daa7fdf..95fb27e553b 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 f169fdbe799..6f630d1f9f2 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 6f7a4f5e6eb..1f407b3a440 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 8fd2754e015..d12c552e7ea 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 e21d9c3ce38..863de6b03b7 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 52f76040fb4..3494dda4bde 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 eb3595aab00..78c2ea11291 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 2c510c47f42..10ce9a2c9cb 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 afd9bf51233..a424d09fe00 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 b24acd56380..33ee394fd40 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 5d450cf256a..e5dc606093e 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 36026b49629..4364a043c64 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 d8c51a71f41..4cc8661c6da 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 0ffe86e787f..093fc3bcc85 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 08d7a42ee4f..42953d00379 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 69259ee2f59..94f0ec5cf5a 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 cc8c657b1e9..62dec98d37b 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 ac3aa4c7a20..2eb3acf63d8 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 86ca07a1097..814ac94a0c3 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 d08083f632b..32b171c404b 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 50168e372a2..ab94da0925c 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 d0bde3deb4f..012fd11af57 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 78ce06ddc0c..94cc9e0a897 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 4b0a5e1a38a..31e5d905512 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 d425d1bd753..37f32c08d3f 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 cfa6515cdf6..a1c7f6e9d75 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 4ec1b915dfa..6696f976417 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 68aabf6d480..2ed18eb7e40 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 19b24e317ad..489c5b13234 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 e16f38f9888..d119dd91957 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 01a8c7a79f9..4c6441dad25 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 18760d63cc8..a2ab1329a4a 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 536238ca040..cb6129fbc2a 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 c9941a39622..b332d449a37 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 ab897e38202..8aa671542ab 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 12ff79b2e20..f0d63ca0ecd 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 61dae25ba3d..e44e9b9c953 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 d138ab73ca1..983204866c0 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 5f4c77c8a47..2481dc0f660 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 0f859f8f9e9..08fcf38b4b6 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 1a7e8a96bdb..c26d54c2ff5 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 d33a4815a5a..1ab93938d46 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 a3e7994c128..01ca23838dc 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 add566d1ce0..f09d32e1468 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 030e1cb4290..901d1809f11 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 0851f3d7f7b..d6310d29f1d 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 5bf491e9078..6e49d9f3949 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 75ce0b8f9ac..d8316053412 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 b4a3a7dc8d2..41a354cc94f 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 1f859aebadb..5ff3c27b267 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 1cea7240fa0..16433437999 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 79e39eba83b..5bbbf2b69e0 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 36ea5383e2e..ed6243fd5fe 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 7f303ed3610..4ac52382b47 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 de1803b7109..d9d9df21126 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 66e1339bac8..98e5dfbfd06 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 8ee6b6de2b5..c4b1b8574bf 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 930901d89b0..19756b748e1 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 eeb58178bf4..0b7c6a87b59 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 e6d5961435a..0a0c30f6a6f 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 3b13edb2ee6..d24d4b45352 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 0dac2ee7acc..5adb42c762a 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 ec08c5eca56..fcbe6a71e70 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 98649c420f2..eaba479035f 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 dc87f0ed868..45727828d4c 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 18ebf9c48c7..9d20ea36575 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 6c5c5ae32ee..3936c2b2abd 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 8b25c6e4ee1..bb5181894a8 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 5619b0b9071..29e47a40918 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 170d5e0ca26..e517c2ee4fe 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 587690a2b28..fd0638e07d1 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 e9021bf0703..5812a8fd32a 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 b9ee7aa43f5..41a49db7f3c 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 3e591b03ce0..06ee570cd0b 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 847428d5687..7a9690a5890 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 7cffd7cc749..b5f3cac8a55 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 452a8db2499..fcdddc1ca4e 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 ba64609d322..0b35bdf68ee 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 320a4920a4c..e735deff8a8 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 a83f248550a..952b86c6e46 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 780aa553e13..d17ba806279 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 a32beac0c10..9f75a32106e 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 6601f2591b1..5f1ad1d4e72 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 748b61d534e..38dead26dd1 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 a8a41a1b569..f17fb48e456 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 70d9aa343e7..7494b5abe0d 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 381610c54ea..896d1b39786 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 3f3eae9530b..c0107779da8 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 7412fa86328..f7e61f9e330 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 dc0b4a219b3..006604bb5e5 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 5f09504d2b3..dc8288f6bc1 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 b124a7a15ba..b30a687fa14 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 374c66667bd..e56cb06cfaa 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 ab8d9c29245..c030e255a3d 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 02cadaaefe4..a04da108d26 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 55220566704..7ba57071654 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 6b50a48c2d7..dcf7a9bf05e 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 409ee6df194..1b1828b17a0 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 cef4f27bc83..de1d0dc6693 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 284fc8ab7f5..55e6e0f98fa 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 8b924b9b4c9..acc7731d4ee 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 4dd000ae3c5..1e8026e12b6 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 42412a87b49..d3a784f50b9 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 172af650e1c..9b531b5d2cb 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 d5deac5bc51..a2b37eba836 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 3fed3fa764d..61f499869f1 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 cd122b92b39..9b22a9b761c 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 0e024cc49d8..bc73e6e826e 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 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 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 e3aabc8889f..824b7460e17 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 1bf824ebea8..4bdbe672ac1 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 cfa0aaa612f..a67c3e254eb 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 a4a2c8d9bb2..853fb452dcc 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 9c5c8247610..3962a7664e4 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 8a2531bcc12..e532ca89e7f 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 df6d4fe767c..af8407938cb 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 4fea35153a6..5fe3576e066 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 20a57f4b480..df7c89d8826 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() |