From 76d421a89ec458e16e562b219266cdb52f2050d5 Mon Sep 17 00:00:00 2001 From: parrt Date: Sun, 4 Dec 2016 10:39:38 -0800 Subject: [PATCH] add copyrights on Python2 --- runtime/Python2/src/antlr4/IntervalSet.py | 6 ++++++ runtime/Python2/src/antlr4/ListTokenSource.py | 8 +++++++- runtime/Python2/src/antlr4/tree/Chunk.py | 6 ++++++ runtime/Python2/src/antlr4/xpath/XPath.py | 5 +++++ 4 files changed, 24 insertions(+), 1 deletion(-) diff --git a/runtime/Python2/src/antlr4/IntervalSet.py b/runtime/Python2/src/antlr4/IntervalSet.py index c4c93749e..7ad52acee 100644 --- a/runtime/Python2/src/antlr4/IntervalSet.py +++ b/runtime/Python2/src/antlr4/IntervalSet.py @@ -1,3 +1,9 @@ +# +# Copyright (c) 2012 The ANTLR Project Contributors. All rights reserved. +# Use is of this file is governed by the BSD 3-clause license that +# can be found in the LICENSE.txt file in the project root. +# + from io import StringIO import unittest from antlr4.Token import Token diff --git a/runtime/Python2/src/antlr4/ListTokenSource.py b/runtime/Python2/src/antlr4/ListTokenSource.py index efd8d06b5..5314cd047 100644 --- a/runtime/Python2/src/antlr4/ListTokenSource.py +++ b/runtime/Python2/src/antlr4/ListTokenSource.py @@ -1,3 +1,9 @@ +# +# Copyright (c) 2012 The ANTLR Project Contributors. All rights reserved. +# Use is of this file is governed by the BSD 3-clause license that +# can be found in the LICENSE.txt file in the project root. +# + # # Provides an implementation of {@link TokenSource} as a wrapper around a list # of {@link Token} objects. @@ -134,4 +140,4 @@ class ListTokenSource(TokenSource): if inputStream is not None: return inputStream.getSourceName() else: - return "List" \ No newline at end of file + return "List" diff --git a/runtime/Python2/src/antlr4/tree/Chunk.py b/runtime/Python2/src/antlr4/tree/Chunk.py index f047f15aa..d27953812 100644 --- a/runtime/Python2/src/antlr4/tree/Chunk.py +++ b/runtime/Python2/src/antlr4/tree/Chunk.py @@ -1,3 +1,9 @@ +# +# Copyright (c) 2012 The ANTLR Project Contributors. All rights reserved. +# Use is of this file is governed by the BSD 3-clause license that +# can be found in the LICENSE.txt file in the project root. +# + class Chunk(object): def __str__(self): diff --git a/runtime/Python2/src/antlr4/xpath/XPath.py b/runtime/Python2/src/antlr4/xpath/XPath.py index e138d3cdf..43485e289 100644 --- a/runtime/Python2/src/antlr4/xpath/XPath.py +++ b/runtime/Python2/src/antlr4/xpath/XPath.py @@ -1,3 +1,8 @@ +# +# Copyright (c) 2012 The ANTLR Project Contributors. All rights reserved. +# Use is of this file is governed by the BSD 3-clause license that +# can be found in the LICENSE.txt file in the project root. +# # # Represent a subset of XPath XML path syntax for use in identifying nodes in