Skip to content

Commit b72faf5

Browse files
committed
Keep tables.rs copyright notice up to date
1 parent a0b5d38 commit b72faf5

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/libcore/unicode/tables.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2012-2016 The Rust Project Developers. See the COPYRIGHT
1+
// Copyright 2012-2018 The Rust Project Developers. See the COPYRIGHT
22
// file at the top-level directory of this distribution and at
33
// http://rust-lang.org/COPYRIGHT.
44
//

src/libcore/unicode/unicode.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@
2323
# Since this should not require frequent updates, we just store this
2424
# out-of-line and check the unicode.py file into git.
2525

26-
import fileinput, re, os, sys, operator, math
26+
import fileinput, re, os, sys, operator, math, datetime
2727

2828
# The directory in which this file resides.
2929
fdir = os.path.dirname(os.path.realpath(__file__)) + "/"
3030

31-
preamble = '''// Copyright 2012-2016 The Rust Project Developers. See the COPYRIGHT
31+
preamble = '''// Copyright 2012-{year} The Rust Project Developers. See the COPYRIGHT
3232
// file at the top-level directory of this distribution and at
3333
// http://rust-lang.org/COPYRIGHT.
3434
//
@@ -43,8 +43,8 @@
4343
#![allow(missing_docs, non_upper_case_globals, non_snake_case)]
4444
4545
use unicode::version::UnicodeVersion;
46-
use unicode::bool_trie::{BoolTrie, SmallBoolTrie};
47-
'''
46+
use unicode::bool_trie::{{BoolTrie, SmallBoolTrie}};
47+
'''.format(year = datetime.datetime.now().year)
4848

4949
# Mapping taken from Table 12 from:
5050
# http://www.unicode.org/reports/tr44/#General_Category_Values

0 commit comments

Comments
 (0)