about summary refs log tree commit diff
path: root/src/libcore/unicode
diff options
context:
space:
mode:
authorvarkor <github@varkor.com>2018-04-12 12:24:08 +0100
committervarkor <github@varkor.com>2018-05-21 18:57:54 +0100
commitb72faf5795681352b5fba83dce91ee24c22e71c8 (patch)
treee74de6bc5a7161797f7d17be65e61e385948a05b /src/libcore/unicode
parenta0b5d3813e5793caed9a6cf973851d40b75bf7b9 (diff)
downloadrust-b72faf5795681352b5fba83dce91ee24c22e71c8.tar.gz
rust-b72faf5795681352b5fba83dce91ee24c22e71c8.zip
Keep tables.rs copyright notice up to date
Diffstat (limited to 'src/libcore/unicode')
-rw-r--r--src/libcore/unicode/tables.rs2
-rwxr-xr-xsrc/libcore/unicode/unicode.py8
2 files changed, 5 insertions, 5 deletions
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