Skip to content

Commit 83b6a72

Browse files
sameer-googlesushantkhanna
authored andcommitted
Ignore invalid escape sequence SyntaxWarning in third_party/pyparsing module
Filtered warnings specific to third_party/pyparsing/ module
1 parent 9ca5ca4 commit 83b6a72

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

gsutil.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,10 @@ def _fix_google_module():
8989
warnings.filterwarnings('ignore',
9090
category=UserWarning,
9191
message=r'.* oauth2client was already imported from')
92+
warnings.filterwarnings("ignore",
93+
category=SyntaxWarning,
94+
message=r"invalid escape sequence",
95+
module=r".*third_party/pyparsing/")
9296

9397
# List of third-party libraries. The first element of the tuple is the name of
9498
# the directory under third_party and the second element is the subdirectory

0 commit comments

Comments
 (0)