Skip to content

Commit

Permalink
Keep tables.rs copyright notice up to date
Browse files Browse the repository at this point in the history
  • Loading branch information
varkor committed May 21, 2018
1 parent a0b5d38 commit b72faf5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion 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.
//
Expand Down
8 changes: 4 additions & 4 deletions src/libcore/unicode/unicode.py
Expand Up @@ -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.
//
Expand All @@ -43,8 +43,8 @@
#![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
Expand Down

0 comments on commit b72faf5

Please sign in to comment.