Skip to content

Commit

Permalink
Remove deprecated property type from message.
Browse files Browse the repository at this point in the history
  • Loading branch information
gbin committed Apr 9, 2017
1 parent 5a7474a commit 41478d4
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions errbot/backends/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,12 +348,6 @@ def is_direct(self) -> bool:
def is_group(self) -> bool:
return isinstance(self.to, Room)

@property
def type(self):
msg = ' {0.filename}:{0.lineno} : '.format(inspect.getframeinfo(inspect.currentframe().f_back))
log.warn(msg + 'msg.type is deprecated and will be removed soon ! Use msg.is_direct or msg.is_group.')
return 'chat' if self.is_direct else 'groupchat'


class Card(Message):
"""
Expand Down

0 comments on commit 41478d4

Please sign in to comment.