Skip to content

Commit

Permalink
Add a __repr__ to Domain
Browse files Browse the repository at this point in the history
  • Loading branch information
ThiefMaster authored and Leats committed Feb 13, 2020
1 parent c428788 commit 8cfc88d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions flask_babel/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -530,6 +530,9 @@ def __init__(self, translation_directories=None, domain='messages'):
self.domain = domain
self.cache = {}

def __repr__(self):
return '<Domain({!r}, {!r})>'.format(self._translation_directories, self.domain)

@property
def translation_directories(self):
if self._translation_directories is not None:
Expand Down

0 comments on commit 8cfc88d

Please sign in to comment.