Skip to content

Commit

Permalink
Merge pull request vitessio#4224 from michael-berlin/caller_id
Browse files Browse the repository at this point in the history
py: Change CallerID to have a useful repr.
  • Loading branch information
michael-berlin authored Sep 28, 2018
2 parents 73fcbf2 + ae5c4d7 commit 8797a2a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions py/vtdb/vtgate_client.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Copyright 2017 Google Inc.
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#
# http://www.apache.org/licenses/LICENSE-2.0
#
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Expand Down Expand Up @@ -71,6 +71,9 @@ def __init__(self, principal=None, component=None, subcomponent=None):
self.component = component
self.subcomponent = subcomponent

def __repr__(self):
return repr((self.principal, self.component, self.subcomponent))


class VTGateClient(object):
"""VTGateClient is the interface for the vtgate client implementations.
Expand Down

0 comments on commit 8797a2a

Please sign in to comment.