File tree Expand file tree Collapse file tree 2 files changed +16
-2
lines changed
graalpython/lib-graalpython Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change 1
1
# coding=utf-8
2
- # Copyright (c) 2017, 2018 , Oracle and/or its affiliates.
2
+ # Copyright (c) 2017, 2020 , Oracle and/or its affiliates.
3
3
# Copyright (c) 2017, The PyPy Project
4
4
#
5
5
# The MIT License
@@ -545,6 +545,11 @@ def truncate(self, size=-1):
545
545
sys .__stderr__ = sys .stderr
546
546
547
547
548
+ # PEP 578 stub
549
+ def open_code (path ):
550
+ return FileIO (path , 'rb' )
551
+
552
+
548
553
# ----------------------------------------------------------------------------------------------------------------------
549
554
#
550
555
# following definitions: patched in the __builtins_patches__ module
Original file line number Diff line number Diff line change 1
- # Copyright (c) 2017, 2019 , Oracle and/or its affiliates. All rights reserved.
1
+ # Copyright (c) 2017, 2020 , Oracle and/or its affiliates. All rights reserved.
2
2
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3
3
#
4
4
# The Universal Permissive License (UPL), Version 1.0
@@ -139,6 +139,15 @@ def make_hash_info_class():
139
139
# continue prompt for interactive shell
140
140
ps2 = "... "
141
141
142
+ pycache_prefix = None
143
+
144
+ # Stub audit hooks implementation for PEP 578
145
+ def audit (str , * args ):
146
+ pass
147
+
148
+ def addaudithook (hook ):
149
+ pass
150
+
142
151
143
152
@__builtin__
144
153
def exit (arg = 0 ):
You can’t perform that action at this time.
0 commit comments