
from django.conf.urls import patterns, include, url
from django.views.generic import View


urlpatterns = patterns('',
    url(r'foo$', View.as_view(), name="foo"),
)


from django.conf.urls import url
from django.views.generic import View


urlpatterns = [
    url(r'foo$', View.as_view(), name="foo"),
]

Fix tests remove unneccessary imports
Fix tests remove unneccessary imports

  
- from django.conf.urls import patterns, include, url
+ from django.conf.urls import url
  from django.views.generic import View
  
  
- urlpatterns = patterns('',
+ urlpatterns = [
      url(r'foo$', View.as_view(), name="foo"),
- )
+ ]
  
Fix tests remove unneccessary imports
## Code Before:

from django.conf.urls import patterns, include, url
from django.views.generic import View


urlpatterns = patterns('',
    url(r'foo$', View.as_view(), name="foo"),
)

## Instruction:
Fix tests remove unneccessary imports
## Code After:

from django.conf.urls import url
from django.views.generic import View


urlpatterns = [
    url(r'foo$', View.as_view(), name="foo"),
]
