Skip to content

Commit

Permalink
Merge pull request #5170 from pypa/vendor-pyparsing-3.0.9
Browse files Browse the repository at this point in the history
bump pyparsing version to 3.0.9
  • Loading branch information
oz123 authored Jul 10, 2022
2 parents c9d7ece + 48fba59 commit 1662a08
Show file tree
Hide file tree
Showing 11 changed files with 322 additions and 232 deletions.
25 changes: 14 additions & 11 deletions pipenv/vendor/pyparsing/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# module pyparsing.py
#
# Copyright (c) 2003-2021 Paul T. McGuire
# Copyright (c) 2003-2022 Paul T. McGuire
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
Expand Down Expand Up @@ -105,14 +105,17 @@ class version_info(NamedTuple):

@property
def __version__(self):
return "{}.{}.{}".format(self.major, self.minor, self.micro) + (
"{}{}{}".format(
"r" if self.releaselevel[0] == "c" else "",
self.releaselevel[0],
self.serial,
),
"",
)[self.releaselevel == "final"]
return (
"{}.{}.{}".format(self.major, self.minor, self.micro)
+ (
"{}{}{}".format(
"r" if self.releaselevel[0] == "c" else "",
self.releaselevel[0],
self.serial,
),
"",
)[self.releaselevel == "final"]
)

def __str__(self):
return "{} {} / {}".format(__name__, self.__version__, __version_time__)
Expand All @@ -125,8 +128,8 @@ def __repr__(self):
)


__version_info__ = version_info(3, 0, 7, "final", 0)
__version_time__ = "15 Jan 2022 04:10 UTC"
__version_info__ = version_info(3, 0, 9, "final", 0)
__version_time__ = "05 May 2022 07:02 UTC"
__version__ = __version_info__.__version__
__versionTime__ = __version_time__
__author__ = "Paul McGuire <[email protected]>"
Expand Down
2 changes: 1 addition & 1 deletion pipenv/vendor/pyparsing/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def replace_with(repl_str):
na = one_of("N/A NA").set_parse_action(replace_with(math.nan))
term = na | num
OneOrMore(term).parse_string("324 234 N/A 234") # -> [324, 234, nan, 234]
term[1, ...].parse_string("324 234 N/A 234") # -> [324, 234, nan, 234]
"""
return lambda s, l, t: [repl_str]

Expand Down
Loading

0 comments on commit 1662a08

Please sign in to comment.