Skip to content

Commit 6b6416c

Browse files
committed
Adds deprecation warning
1 parent 0c78acc commit 6b6416c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

pandas_gbq/gbq.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1460,12 +1460,21 @@ def create_user_agent(
14601460
14611461
Returns (str):
14621462
Customized user agent string.
1463+
1464+
Deprecation Warning:
1465+
In a future major release, the default delimiter will be changed to
1466+
a `/` in accordance with RFC9110.
14631467
"""
14641468
import pandas as pd
14651469

14661470
if rfc9110_delimiter:
14671471
delimiter = "/"
14681472
else:
1473+
warnings.warn(
1474+
"In a future major release, the default delimiter will be "
1475+
"changed to a `/` in accordance with RFC9110",
1476+
PendingDeprecationWarning,
1477+
)
14691478
delimiter = "-"
14701479

14711480
identity = f"pandas{delimiter}{pd.__version__}"

0 commit comments

Comments
 (0)