mypy: Fix variable reuse in streams.py.

This commit is contained in:
Tim Abbott 2017-11-07 17:48:14 -08:00
parent 7e13d74529
commit a8a159c5d2
1 changed files with 2 additions and 2 deletions

View File

@ -313,8 +313,8 @@ def add_subscriptions_backend(request, user_profile,
notifications_stream = user_profile.realm.get_notifications_stream()
if notifications_stream is not None:
if len(created_streams) > 1:
streams = ", ".join('#**%s**' % s.name for s in created_streams)
stream_msg = "the following streams: %s" % (streams,)
stream_strs = ", ".join('#**%s**' % s.name for s in created_streams)
stream_msg = "the following streams: %s" % (stream_strs,)
else:
stream_msg = "a new stream #**%s**." % created_streams[0].name
msg = ("%s just created %s" % (user_profile.full_name, stream_msg))