diff options
author | Anton Samokhvalov <pg83@yandex.ru> | 2022-02-10 16:45:17 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:17 +0300 |
commit | d3a398281c6fd1d3672036cb2d63f842d2cb28c5 (patch) | |
tree | dd4bd3ca0f36b817e96812825ffaf10d645803f2 /contrib/libs/lz4/generated/gen.py | |
parent | 72cb13b4aff9bc9cf22e49251bc8fd143f82538f (diff) | |
download | ydb-d3a398281c6fd1d3672036cb2d63f842d2cb28c5.tar.gz |
Restoring authorship annotation for Anton Samokhvalov <pg83@yandex.ru>. Commit 2 of 2.
Diffstat (limited to 'contrib/libs/lz4/generated/gen.py')
-rw-r--r-- | contrib/libs/lz4/generated/gen.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/libs/lz4/generated/gen.py b/contrib/libs/lz4/generated/gen.py index 6bee186e93..24dec0555c 100644 --- a/contrib/libs/lz4/generated/gen.py +++ b/contrib/libs/lz4/generated/gen.py @@ -1,5 +1,5 @@ import os - + lz4 = ''' #define LZ4_MEMORY_USAGE {i} #define LZ4_NAMESPACE lz4_{i} @@ -32,14 +32,14 @@ cases = [] os.chdir(os.path.dirname(__file__)) -for i in range(10, 21): +for i in range(10, 21): name = 'lz4_{}.cpp'.format(i) namespaces.append(lz4_namespace.format(i=i)) cases.append(lz4_case.format(i=i)) print ' ' + name - + with open(name, 'w') as f: f.write(lz4.format(i=i)) - + with open('lz4methods.cpp', 'w') as f: f.write(lz4methods % ('\n'.join(namespaces), '\n'.join(cases))) |