Skip to content

Commit

Permalink
[Dy2St]Fix Regex DeprecationWarning in PY3 (#46800)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aurelius84 authored Oct 10, 2022
1 parent ef61df3 commit 140f3b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/paddle/fluid/dygraph/dygraph_to_static/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def visit(self, node):
FOR_ITER_ZIP_TO_LIST_PREFIX = '__for_loop_iter_zip'

RE_PYNAME = '[a-zA-Z0-9_]+'
RE_PYMODULE = '[a-zA-Z0-9_]+\.'
RE_PYMODULE = r'[a-zA-Z0-9_]+\.'

# FullArgSpec is valid from Python3. Defined a Namedtuple to
# to make it available in Python2.
Expand Down

0 comments on commit 140f3b2

Please sign in to comment.