# -*- coding: utf-8 -*-
from django import VERSION as DJANGO_VERSION
if DJANGO_VERSION < (1, 10):
    from django.conf.urls import url, patterns, include
    from django.core.urlresolvers import reverse_lazy
elif DJANGO_VERSION < 2:
    from django.conf.urls import url, include
    from django.urls import reverse_lazy
else:
    from django.urls import path, include
    from django.urls import reverse_lazy
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.views.generic import RedirectView
from django.contrib import admin
from .views import BroadcastChatView, UserChatView, GroupChatView
admin.autodiscover()


if DJANGO_VERSION < (1, 10):
    urlpatterns = patterns('',
        url(r'^chat/$', BroadcastChatView.as_view(), name='broadcast_chat'),
        url(r'^userchat/$', UserChatView.as_view(), name='user_chat'),
        url(r'^groupchat/$', GroupChatView.as_view(), name='group_chat'),
        url(r'^accounts/', include('django.contrib.auth.urls')),
        url(r'^admin/', include(admin.site.urls)),
        url(r'^$', RedirectView.as_view(url=reverse_lazy('broadcast_chat'))),
    ) + staticfiles_urlpatterns()
elif DJANGO_VERSION < 2:
    urlpatterns = [
        url(r'^chat/$', BroadcastChatView.as_view(), name='broadcast_chat'),
        url(r'^userchat/$', UserChatView.as_view(), name='user_chat'),
        url(r'^groupchat/$', GroupChatView.as_view(), name='group_chat'),
        url(r'^accounts/', include('django.contrib.auth.urls')),
        url(r'^admin/', include(admin.site.urls)),
        url(r'^$', RedirectView.as_view(url=reverse_lazy('broadcast_chat'))),
    ]
else:
    urlpatterns = [
        path('chat/', BroadcastChatView.as_view(), name='broadcast_chat'),
        path('userchat/', UserChatView.as_view(), name='user_chat'),
        path('groupchat/', GroupChatView.as_view(), name='group_chat'),
        path('accounts/', include('django.contrib.auth.urls')),
        path('admin/', include(admin.site.urls)),
        path('', RedirectView.as_view(url=reverse_lazy('broadcast_chat'))),
    ]

@@ -219,25 +219,28 @@
 O_VERSION %3C 
-2
+(2,)
 :%0A    from d

fix tuple comparision