add copyrights on Python2

This commit is contained in:
parrt 2016-12-04 10:39:38 -08:00
parent f597069728
commit 76d421a89e
4 changed files with 24 additions and 1 deletions

View File

@ -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 from io import StringIO
import unittest import unittest
from antlr4.Token import Token from antlr4.Token import Token

View File

@ -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 # Provides an implementation of {@link TokenSource} as a wrapper around a list
# of {@link Token} objects. # of {@link Token} objects.
@ -134,4 +140,4 @@ class ListTokenSource(TokenSource):
if inputStream is not None: if inputStream is not None:
return inputStream.getSourceName() return inputStream.getSourceName()
else: else:
return "List" return "List"

View File

@ -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): class Chunk(object):
def __str__(self): def __str__(self):

View File

@ -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 # Represent a subset of XPath XML path syntax for use in identifying nodes in