Skip to content

Commit d893b5e

Browse files
authored
Merge pull request #39 from NCAR/hua-work-common
str.replace replaces re.sub
2 parents b306aea + 2c39841 commit d893b5e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "rda_python_common"
7-
version = "1.0.34"
7+
version = "1.0.35"
88
authors = [
99
{ name="Zaihua Ji", email="zji@ucar.edu" },
1010
]

src/rda_python_common/PgLOG.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ def send_customized_email(logmsg, emlmsg, logact = 0):
265265
ms = re.search(r'(^|\n)({}: *(.*)\n)'.format(entry), emlmsg, re.I)
266266
if ms:
267267
vals = ms.groups()
268-
msg = re.sub(vals[1], '', msg)
268+
msg = msg.replace(vals[1], '')
269269
if vals[2]: entries[ekey][2] = vals[2]
270270
elif logact and entries[ekey][1]:
271271
return pglog("{}Missing Entry '{}' for sending email".format(logmsg, entry), logact|ERRLOG)

0 commit comments

Comments
 (0)