Skip to content

Commit 5fe23db

Browse files
Jenkinsopenstack-gerrit
Jenkins
authored andcommitted
Merge "Remove #noqa from two common imports and add them to import_exceptions"
2 parents be98841 + 539c14e commit 5fe23db

File tree

77 files changed

+155
-151
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+155
-151
lines changed

HACKING.rst

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ Horizon Style Commandments
88

99
collections.defaultdict,
1010
django.conf.settings,
11+
django.conf.urls.patterns,
12+
django.conf.urls.url,
1113
django.core.urlresolvers.reverse,
1214
django.core.urlresolvers.reverse_lazy,
1315
django.template.loader.render_to_string,

doc/source/topics/tutorial.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -396,8 +396,8 @@ URLs
396396
----
397397
The auto-generated ``urls.py`` file is like::
398398

399-
from django.conf.urls import patterns # noqa
400-
from django.conf.urls import url # noqa
399+
from django.conf.urls import patterns
400+
from django.conf.urls import url
401401

402402
from .views import IndexView
403403

@@ -428,8 +428,8 @@ Notice that ``mypanel_tabs`` is the ``slug`` attribute defined in the
428428

429429
The completed ``urls.py`` file should look like the following::
430430

431-
from django.conf.urls import patterns # noqa
432-
from django.conf.urls import url # noqa
431+
from django.conf.urls import patterns
432+
from django.conf.urls import url
433433

434434
from openstack_dashboard.dashboards.mydashboard.mypanel import views
435435

horizon/base.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828

2929
from django.conf import settings
3030
from django.conf.urls import include # noqa
31-
from django.conf.urls import patterns # noqa
32-
from django.conf.urls import url # noqa
31+
from django.conf.urls import patterns
32+
from django.conf.urls import url
3333
from django.core.exceptions import ImproperlyConfigured # noqa
3434
from django.core.urlresolvers import reverse
3535
from django.utils.datastructures import SortedDict

horizon/conf/panel_template/urls.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
from django.conf.urls import patterns # noqa
2-
from django.conf.urls import url # noqa
1+
from django.conf.urls import patterns
2+
from django.conf.urls import url
33

44
from .views import IndexView
55

horizon/site_urls.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818

1919
from django.conf import settings
2020
from django.conf.urls import include # noqa
21-
from django.conf.urls import patterns # noqa
22-
from django.conf.urls import url # noqa
21+
from django.conf.urls import patterns
22+
from django.conf.urls import url
2323
from django.views.generic import TemplateView # noqa
2424

2525
from horizon.test.jasmine import jasmine

horizon/test/test_dashboards/cats/kittens/urls.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
from django.conf.urls import patterns # noqa
2-
from django.conf.urls import url # noqa
1+
from django.conf.urls import patterns
2+
from django.conf.urls import url
33

44
from horizon.test.test_dashboards.cats.kittens.views import IndexView # noqa
55

horizon/test/test_dashboards/cats/tigers/urls.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
from django.conf.urls import patterns # noqa
2-
from django.conf.urls import url # noqa
1+
from django.conf.urls import patterns
2+
from django.conf.urls import url
33

44
from horizon.test.test_dashboards.cats.tigers.views import IndexView # noqa
55

horizon/test/test_dashboards/dogs/puppies/urls.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
from django.conf.urls import patterns # noqa
2-
from django.conf.urls import url # noqa
1+
from django.conf.urls import patterns
2+
from django.conf.urls import url
33

44
from horizon.test.test_dashboards.dogs.puppies.views import IndexView # noqa
55
from horizon.test.test_dashboards.dogs.puppies.views import TwoTabsView # noqa

horizon/test/urls.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
"""
2222

2323
from django.conf.urls import include # noqa
24-
from django.conf.urls import patterns # noqa
25-
from django.conf.urls import url # noqa
24+
from django.conf.urls import patterns
25+
from django.conf.urls import url
2626
from django.contrib.staticfiles.urls import staticfiles_urlpatterns # noqa
2727
from django.views.generic import TemplateView # noqa
2828

openstack_dashboard/dashboards/admin/aggregates/urls.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
# License for the specific language governing permissions and limitations
1111
# under the License.
1212

13-
from django.conf.urls import patterns # noqa
14-
from django.conf.urls import url # noqa
13+
from django.conf.urls import patterns
14+
from django.conf.urls import url
1515

1616
from openstack_dashboard.dashboards.admin.aggregates \
1717
import views

openstack_dashboard/dashboards/admin/flavors/urls.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
# License for the specific language governing permissions and limitations
1717
# under the License.
1818

19-
from django.conf.urls import patterns # noqa
20-
from django.conf.urls import url # noqa
19+
from django.conf.urls import patterns
20+
from django.conf.urls import url
2121

2222
from openstack_dashboard.dashboards.admin.flavors import views
2323

openstack_dashboard/dashboards/admin/hypervisors/compute/urls.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
# License for the specific language governing permissions and limitations
1111
# under the License.
1212

13-
from django.conf.urls import patterns # noqa
14-
from django.conf.urls import url # noqa
13+
from django.conf.urls import patterns
14+
from django.conf.urls import url
1515

1616
from openstack_dashboard.dashboards.admin.hypervisors.compute import views
1717

openstack_dashboard/dashboards/admin/hypervisors/urls.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
# under the License.
1414

1515
from django.conf.urls import include # noqa
16-
from django.conf.urls import patterns # noqa
17-
from django.conf.urls import url # noqa
16+
from django.conf.urls import patterns
17+
from django.conf.urls import url
1818

1919
from openstack_dashboard.dashboards.admin.hypervisors.compute \
2020
import urls as compute_urls

openstack_dashboard/dashboards/admin/images/urls.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
# License for the specific language governing permissions and limitations
1717
# under the License.
1818

19-
from django.conf.urls import patterns # noqa
20-
from django.conf.urls import url # noqa
19+
from django.conf.urls import patterns
20+
from django.conf.urls import url
2121

2222
from openstack_dashboard.dashboards.admin.images import views
2323

openstack_dashboard/dashboards/admin/info/urls.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
# License for the specific language governing permissions and limitations
1717
# under the License.
1818

19-
from django.conf.urls import patterns # noqa
20-
from django.conf.urls import url # noqa
19+
from django.conf.urls import patterns
20+
from django.conf.urls import url
2121

2222
from openstack_dashboard.dashboards.admin.info import views
2323

openstack_dashboard/dashboards/admin/instances/urls.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
# License for the specific language governing permissions and limitations
1717
# under the License.
1818

19-
from django.conf.urls import patterns # noqa
20-
from django.conf.urls import url # noqa
19+
from django.conf.urls import patterns
20+
from django.conf.urls import url
2121

2222
from openstack_dashboard.dashboards.admin.instances import views
2323

openstack_dashboard/dashboards/admin/metering/urls.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
# License for the specific language governing permissions and limitations
1111
# under the License.
1212

13-
from django.conf.urls import patterns # noqa
14-
from django.conf.urls import url # noqa
13+
from django.conf.urls import patterns
14+
from django.conf.urls import url
1515

1616
from openstack_dashboard.dashboards.admin.metering import views
1717

openstack_dashboard/dashboards/admin/networks/ports/urls.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
# License for the specific language governing permissions and limitations
1313
# under the License.
1414

15-
from django.conf.urls import patterns # noqa
16-
from django.conf.urls import url # noqa
15+
from django.conf.urls import patterns
16+
from django.conf.urls import url
1717

1818
from openstack_dashboard.dashboards.project.networks.ports import views
1919

openstack_dashboard/dashboards/admin/networks/subnets/urls.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
# License for the specific language governing permissions and limitations
1313
# under the License.
1414

15-
from django.conf.urls import patterns # noqa
16-
from django.conf.urls import url # noqa
15+
from django.conf.urls import patterns
16+
from django.conf.urls import url
1717

1818
from openstack_dashboard.dashboards.project.networks.subnets import views
1919

openstack_dashboard/dashboards/admin/networks/urls.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
# under the License.
1414

1515
from django.conf.urls import include # noqa
16-
from django.conf.urls import patterns # noqa
17-
from django.conf.urls import url # noqa
16+
from django.conf.urls import patterns
17+
from django.conf.urls import url
1818

1919
from openstack_dashboard.dashboards.admin.networks.agents \
2020
import views as agent_views

openstack_dashboard/dashboards/admin/overview/urls.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
# under the License.
1818

1919

20-
from django.conf.urls import patterns # noqa
21-
from django.conf.urls import url # noqa
20+
from django.conf.urls import patterns
21+
from django.conf.urls import url
2222

2323
from openstack_dashboard.dashboards.admin.overview import views
2424

openstack_dashboard/dashboards/admin/routers/ports/urls.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
# License for the specific language governing permissions and limitations
1313
# under the License.
1414

15-
from django.conf.urls import patterns # noqa
16-
from django.conf.urls import url # noqa
15+
from django.conf.urls import patterns
16+
from django.conf.urls import url
1717

1818
from openstack_dashboard.dashboards.admin.routers.ports import views
1919

openstack_dashboard/dashboards/admin/routers/urls.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
# License for the specific language governing permissions and limitations
1313
# under the License.
1414

15-
from django.conf.urls import patterns # noqa
16-
from django.conf.urls import url # noqa
15+
from django.conf.urls import patterns
16+
from django.conf.urls import url
1717

1818
from openstack_dashboard.dashboards.admin.routers import views
1919

openstack_dashboard/dashboards/admin/volumes/snapshots/urls.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
# License for the specific language governing permissions and limitations
1111
# under the License.
1212

13-
from django.conf.urls import patterns # noqa
14-
from django.conf.urls import url # noqa
13+
from django.conf.urls import patterns
14+
from django.conf.urls import url
1515

1616
from openstack_dashboard.dashboards.admin.volumes.snapshots import views
1717

openstack_dashboard/dashboards/admin/volumes/urls.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
# under the License.
1212

1313
from django.conf.urls import include # noqa
14-
from django.conf.urls import patterns # noqa
15-
from django.conf.urls import url # noqa
14+
from django.conf.urls import patterns
15+
from django.conf.urls import url
1616

1717
from openstack_dashboard.dashboards.admin.volumes.snapshots \
1818
import urls as snapshot_urls

openstack_dashboard/dashboards/admin/volumes/volume_types/extras/urls.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
# License for the specific language governing permissions and limitations
1111
# under the License.
1212

13-
from django.conf.urls import patterns # noqa
14-
from django.conf.urls import url # noqa
13+
from django.conf.urls import patterns
14+
from django.conf.urls import url
1515

1616
from openstack_dashboard.dashboards.admin.volumes.volume_types.extras \
1717
import views

openstack_dashboard/dashboards/admin/volumes/volume_types/qos_specs/urls.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
# License for the specific language governing permissions and limitations
1111
# under the License.
1212

13-
from django.conf.urls import patterns # noqa
14-
from django.conf.urls import url # noqa
13+
from django.conf.urls import patterns
14+
from django.conf.urls import url
1515

1616
from openstack_dashboard.dashboards.admin.volumes.volume_types.qos_specs \
1717
import views

openstack_dashboard/dashboards/admin/volumes/volume_types/urls.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
# under the License.
1212

1313
from django.conf.urls import include # noqa
14-
from django.conf.urls import patterns # noqa
15-
from django.conf.urls import url # noqa
14+
from django.conf.urls import patterns
15+
from django.conf.urls import url
1616

1717
from openstack_dashboard.dashboards.admin.volumes.volume_types.extras \
1818
import urls as extras_urls

openstack_dashboard/dashboards/admin/volumes/volumes/urls.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
# under the License.
1212

1313
from django.conf.urls import include # noqa
14-
from django.conf.urls import patterns # noqa
15-
from django.conf.urls import url # noqa
14+
from django.conf.urls import patterns
15+
from django.conf.urls import url
1616

1717
from openstack_dashboard.dashboards.admin.volumes.volumes \
1818
import views

openstack_dashboard/dashboards/identity/domains/urls.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
# License for the specific language governing permissions and limitations
1313
# under the License.
1414

15-
from django.conf.urls import patterns # noqa
16-
from django.conf.urls import url # noqa
15+
from django.conf.urls import patterns
16+
from django.conf.urls import url
1717

1818
from openstack_dashboard.dashboards.identity.domains import views
1919

openstack_dashboard/dashboards/identity/groups/urls.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
# License for the specific language governing permissions and limitations
1313
# under the License.
1414

15-
from django.conf.urls import patterns # noqa
16-
from django.conf.urls import url # noqa
15+
from django.conf.urls import patterns
16+
from django.conf.urls import url
1717

1818
from openstack_dashboard.dashboards.identity.groups import views
1919

openstack_dashboard/dashboards/identity/projects/urls.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
# License for the specific language governing permissions and limitations
1717
# under the License.
1818

19-
from django.conf.urls import patterns # noqa
20-
from django.conf.urls import url # noqa
19+
from django.conf.urls import patterns
20+
from django.conf.urls import url
2121

2222
from openstack_dashboard.dashboards.identity.projects import views
2323

openstack_dashboard/dashboards/identity/roles/urls.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
# License for the specific language governing permissions and limitations
1313
# under the License.
1414

15-
from django.conf.urls import patterns # noqa
16-
from django.conf.urls import url # noqa
15+
from django.conf.urls import patterns
16+
from django.conf.urls import url
1717

1818
from openstack_dashboard.dashboards.identity.roles import views
1919

openstack_dashboard/dashboards/identity/users/urls.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
# License for the specific language governing permissions and limitations
1717
# under the License.
1818

19-
from django.conf.urls import patterns # noqa
20-
from django.conf.urls import url # noqa
19+
from django.conf.urls import patterns
20+
from django.conf.urls import url
2121

2222
from openstack_dashboard.dashboards.identity.users import views
2323

openstack_dashboard/dashboards/project/access_and_security/api_access/urls.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
# License for the specific language governing permissions and limitations
1717
# under the License.
1818

19-
from django.conf.urls import patterns # noqa
20-
from django.conf.urls import url # noqa
19+
from django.conf.urls import patterns
20+
from django.conf.urls import url
2121

2222
from openstack_dashboard.dashboards.project.access_and_security.\
2323
api_access import views

openstack_dashboard/dashboards/project/access_and_security/floating_ips/urls.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
# License for the specific language governing permissions and limitations
1717
# under the License.
1818

19-
from django.conf.urls import patterns # noqa
20-
from django.conf.urls import url # noqa
19+
from django.conf.urls import patterns
20+
from django.conf.urls import url
2121

2222
from openstack_dashboard.dashboards.project.access_and_security.\
2323
floating_ips import views

0 commit comments

Comments
 (0)