Guest User

Untitled

a guest
May 20th, 2018
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.30 KB | None | 0 0
  1. -    def __init__(self, *messages):
  2. +    def __init__(self, messages):
  3.          super(FetchCommand, self).__init__()
  4.          self._items = []
  5. -        self._messages = ','.join(str(m) for m in messages)
  6. +       self._messages = ','.join(map(str, messages)) if isinstance(messages, list) else str(messages)
Add Comment
Please, Sign In to add comment