Skip to content

Commit 398c261

Browse files
committed
adjust year in generated parser
1 parent 6a28821 commit 398c261

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

graalpython/com.oracle.graal.python.pegparser.generator/pegjava/java_generator.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
import ast
1111
import os
1212
import re
13+
import datetime
1314
from collections import Counter
1415
from dataclasses import dataclass
1516
from enum import Enum
@@ -403,7 +404,7 @@ def __str__(self) -> str:
403404
}
404405

405406
LICENSE = '''/*
406-
* Copyright (c) 2021, 2024, Oracle and/or its affiliates. All rights reserved.
407+
* Copyright (c) 2021, {year}, Oracle and/or its affiliates. All rights reserved.
407408
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
408409
*
409410
* The Universal Permissive License (UPL), Version 1.0
@@ -442,7 +443,7 @@ def __str__(self) -> str:
442443
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
443444
* SOFTWARE.
444445
*/
445-
'''
446+
'''.format(year=datetime.datetime.now().strftime('%Y'))
446447

447448
IMPORTS = '''
448449
import com.oracle.graal.python.pegparser.sst.*;

0 commit comments

Comments
 (0)