Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--help error #15

Open
lzyxdu opened this issue Apr 25, 2023 · 1 comment
Open

--help error #15

lzyxdu opened this issue Apr 25, 2023 · 1 comment

Comments

@lzyxdu
Copy link

lzyxdu commented Apr 25, 2023

I ran:
python test262.py --help
and I got the output:

Traceback (most recent call last):
  File "test262.py", line 31, in <module>
    from parseTestRecord import parseTestRecord, stripHeader
ImportError: cannot import name stripHeader

how to fix that?

@dabl03
Copy link

dabl03 commented Jun 20, 2024

In a code-breaking change they removed stripHeader. The function previously was:

def stripHeader(src):
    header = headerPattern.match(src).group(0)
    return src[len(header):]

Here is the change: 4#

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants