diff options
author | Mikhail Borisov <borisov.mikhail@gmail.com> | 2022-02-10 16:45:39 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:39 +0300 |
commit | a6a92afe03e02795227d2641b49819b687f088f8 (patch) | |
tree | f6984a1d27d5a7ec88a6fdd6e20cd5b7693b6ece /contrib/libs/cctz | |
parent | c6dc8b8bd530985bc4cce0137e9a5de32f1087cb (diff) | |
download | ydb-a6a92afe03e02795227d2641b49819b687f088f8.tar.gz |
Restoring authorship annotation for Mikhail Borisov <borisov.mikhail@gmail.com>. Commit 1 of 2.
Diffstat (limited to 'contrib/libs/cctz')
-rw-r--r-- | contrib/libs/cctz/tzdata/factory.cpp | 4 | ||||
-rwxr-xr-x | contrib/libs/cctz/tzdata/update_tzdata.py | 12 |
2 files changed, 8 insertions, 8 deletions
diff --git a/contrib/libs/cctz/tzdata/factory.cpp b/contrib/libs/cctz/tzdata/factory.cpp index 5a4b4a27b6..f3d244a379 100644 --- a/contrib/libs/cctz/tzdata/factory.cpp +++ b/contrib/libs/cctz/tzdata/factory.cpp @@ -4,7 +4,7 @@ #include <util/generic/string.h> #include <util/stream/str.h> -#include <util/string/builder.h> +#include <util/string/builder.h> namespace cctz_extension { namespace { @@ -21,7 +21,7 @@ namespace cctz_extension { static std::unique_ptr<cctz::ZoneInfoSource> LoadZone(const std::string& zoneName) { TString resourceName = TStringBuilder() << "/cctz/tzdata/"sv << zoneName; TString tzData; - if (!NResource::FindExact(resourceName, &tzData)) { + if (!NResource::FindExact(resourceName, &tzData)) { return nullptr; } return std::unique_ptr<cctz::ZoneInfoSource>(new TZoneInfoSource(std::move(tzData))); diff --git a/contrib/libs/cctz/tzdata/update_tzdata.py b/contrib/libs/cctz/tzdata/update_tzdata.py index 9c3cd07352..40ae7578ad 100755 --- a/contrib/libs/cctz/tzdata/update_tzdata.py +++ b/contrib/libs/cctz/tzdata/update_tzdata.py @@ -37,11 +37,11 @@ def create_cmakelists(zoneinfo_dir): with open(os.path.join(generated_dir, tz_hash), 'w') as f: f.write(tz_content) - yamake_template = ( - 'RESOURCE(\n' - '{}\n' - ')' - ) + yamake_template = ( + 'RESOURCE(\n' + '{}\n' + ')' + ) resources = '\n'.join(' generated/{} /cctz/tzdata/{}'.format(tz_hash, tz_name) for tz_name, tz_hash in sorted(tz_to_hash.iteritems())) all_hashes = set(tz_to_hash.values()) @@ -51,7 +51,7 @@ def create_cmakelists(zoneinfo_dir): subprocess.check_call(['svn', cmd, '--force', fn]) with open('ya.make.resources', 'w') as f: - print >>f, yamake_template.format(resources) + print >>f, yamake_template.format(resources) def get_latest_iana_version(): index_html = urllib2.urlopen('http://www.iana.org/time-zones').read() |