from __future__ import unicode_literals

from django.conf.urls import patterns, url

from markitup.views import apply_filter

urlpatterns = patterns(
    '',
    url(r'preview/$', apply_filter, name='markitup_preview')
    )

from __future__ import unicode_literals

from django.conf.urls import url

from markitup.views import apply_filter

urlpatterns = [
    url(r'preview/$', apply_filter, name='markitup_preview'),
]

Use plain Python list for urlpatterns.
Use plain Python list for urlpatterns.

  from __future__ import unicode_literals
  
- from django.conf.urls import patterns, url
+ from django.conf.urls import url
  
  from markitup.views import apply_filter
  
+ urlpatterns = [
- urlpatterns = patterns(
-     '',
-     url(r'preview/$', apply_filter, name='markitup_preview')
+     url(r'preview/$', apply_filter, name='markitup_preview'),
-     )
+ ]
  
Use plain Python list for urlpatterns.
## Code Before:
from __future__ import unicode_literals

from django.conf.urls import patterns, url

from markitup.views import apply_filter

urlpatterns = patterns(
    '',
    url(r'preview/$', apply_filter, name='markitup_preview')
    )

## Instruction:
Use plain Python list for urlpatterns.
## Code After:
from __future__ import unicode_literals

from django.conf.urls import url

from markitup.views import apply_filter

urlpatterns = [
    url(r'preview/$', apply_filter, name='markitup_preview'),
]
