Skip to content

Commit

Permalink
Add deprecation warning to site setter too
Browse files Browse the repository at this point in the history
  • Loading branch information
t8y8 committed Nov 2, 2016
1 parent 114922b commit f9bd617
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tableauserverclient/models/tableau_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,10 @@ def site(self):
warnings.warn('TableauAuth.site is deprecated, use TableauAuth.site_id instead.',
DeprecationWarning)
return self.site_id

@site.setter
def site(self, value):
import warnings
warnings.warn('TableauAuth.site is deprecated, use TableauAuth.site_id instead.',
DeprecationWarning)
self.site_id = value

0 comments on commit f9bd617

Please sign in to comment.