From b72faf5795681352b5fba83dce91ee24c22e71c8 Mon Sep 17 00:00:00 2001 From: varkor Date: Thu, 12 Apr 2018 12:24:08 +0100 Subject: Keep tables.rs copyright notice up to date --- src/libcore/unicode/tables.rs | 2 +- src/libcore/unicode/unicode.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src/libcore/unicode') diff --git a/src/libcore/unicode/tables.rs b/src/libcore/unicode/tables.rs index 1d553fe5538..1fdd92cd47d 100644 --- a/src/libcore/unicode/tables.rs +++ b/src/libcore/unicode/tables.rs @@ -1,4 +1,4 @@ -// Copyright 2012-2016 The Rust Project Developers. See the COPYRIGHT +// Copyright 2012-2018 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // diff --git a/src/libcore/unicode/unicode.py b/src/libcore/unicode/unicode.py index 2527c1c103e..d24b4eb4ce4 100755 --- a/src/libcore/unicode/unicode.py +++ b/src/libcore/unicode/unicode.py @@ -23,12 +23,12 @@ # Since this should not require frequent updates, we just store this # out-of-line and check the unicode.py file into git. -import fileinput, re, os, sys, operator, math +import fileinput, re, os, sys, operator, math, datetime # The directory in which this file resides. fdir = os.path.dirname(os.path.realpath(__file__)) + "/" -preamble = '''// Copyright 2012-2016 The Rust Project Developers. See the COPYRIGHT +preamble = '''// Copyright 2012-{year} The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // @@ -43,8 +43,8 @@ preamble = '''// Copyright 2012-2016 The Rust Project Developers. See the COPYRI #![allow(missing_docs, non_upper_case_globals, non_snake_case)] use unicode::version::UnicodeVersion; -use unicode::bool_trie::{BoolTrie, SmallBoolTrie}; -''' +use unicode::bool_trie::{{BoolTrie, SmallBoolTrie}}; +'''.format(year = datetime.datetime.now().year) # Mapping taken from Table 12 from: # http://www.unicode.org/reports/tr44/#General_Category_Values -- cgit 1.4.1-3-g733a5