Skip to content

Commit

Permalink
Adds deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
chalmerlowe committed Oct 11, 2024
1 parent 0c78acc commit 6b6416c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pandas_gbq/gbq.py
Original file line number Diff line number Diff line change
Expand Up @@ -1460,12 +1460,21 @@ def create_user_agent(
Returns (str):
Customized user agent string.
Deprecation Warning:
In a future major release, the default delimiter will be changed to
a `/` in accordance with RFC9110.
"""
import pandas as pd

if rfc9110_delimiter:
delimiter = "/"
else:
warnings.warn(
"In a future major release, the default delimiter will be "
"changed to a `/` in accordance with RFC9110",
PendingDeprecationWarning,
)
delimiter = "-"

identity = f"pandas{delimiter}{pd.__version__}"
Expand Down

0 comments on commit 6b6416c

Please sign in to comment.