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

small changes to tag-value lexer/parser #534

Merged

Conversation

armintaenzertng
Copy link
Collaborator

change DATE to ISO8601_DATE, don't inherit from object

Signed-off-by: Armin Tänzer <armin.taenzer@tngtech.com>
@@ -107,7 +107,7 @@ class SPDXLexer(object):
"UNKNOWN_TAG",
"ORGANIZATION_VALUE",
"PERSON_VALUE",
"DATE",
"ISO8601_DATE",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As there was recently a discussion about the date not being exatly ISO8601 I am wondering if we should really name it like that.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's be clear: it is an ISO-8601 formatted date.

It doesn't allow all variants of ISO-8601, which include 20230328T122341.123 or 20230328T12XXXX or 2023-33. You would find very few implementations handling all these variants.

Copy link
Collaborator

@meretp meretp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@armintaenzertng armintaenzertng merged commit 69e938a into spdx:refactor-python-tools Mar 29, 2023
@armintaenzertng armintaenzertng deleted the tvLexerParserFixes branch March 29, 2023 10:10
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

Successfully merging this pull request may close these issues.

3 participants