Skip to content

Commit a8aeda8

Browse files
committed
black
1 parent 0158669 commit a8aeda8

File tree

6 files changed

+2
-12
lines changed

6 files changed

+2
-12
lines changed
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
from zope.i18nmessageid import MessageFactory
22

3-
43
PACKAGE_NAME = "plone.formwidget.geolocation"
54

65
_ = MessageFactory(PACKAGE_NAME)
76

87
from plone.formwidget.geolocation.field import GeolocationField # noqa
98
from plone.formwidget.geolocation.geolocation import Geolocation # noqa
109

11-
1210
__all__ = ("Geolocation", "GeolocationField")

plone/formwidget/geolocation/tests/test_supermodel.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
import unittest
88

9-
109
SUPERMODEL_XML = """<field name="dummy" type="plone.formwidget.geolocation.GeolocationField">
1110
<schema>plone.formwidget.geolocation.interfaces.IGeolocation</schema>
1211
<title>Geolocation</title>

plone/formwidget/geolocation/tests/test_widget.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
import zope.browserpage
2121
import zope.component
2222

23-
2423
zcml_wrapper = """<configure
2524
xmlns='http://namespaces.zope.org/zope'
2625
xmlns:browser='http://namespaces.zope.org/browser'
@@ -173,18 +172,15 @@ def test_popup(self):
173172
self.assertEqual(popup.strip(), "<h3>Title</h3><p>Description</p>")
174173

175174
template_path = os.path.join(os.path.dirname(__file__), "test_popup.pt")
176-
zcml = (
177-
"""
175+
zcml = """
178176
<browser:page
179177
name="geolocation-geojson-popup"
180178
for="plone.formwidget.geolocation.tests.test_widget.IDummyContent"
181179
class="plone.formwidget.geolocation.popup.PopupView"
182180
template="%s"
183181
permission="zope.Public"
184182
/>
185-
"""
186-
% template_path
187-
)
183+
""" % template_path
188184
xmlconfig(StringIO(zcml_wrapper % zcml))
189185
widget.update()
190186
json_result = json.loads(widget.data_geojson)

plone/formwidget/geolocation/upgrades.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
import logging
88

9-
109
logger = logging.getLogger("plone.formwidget.geolocation upgrade")
1110
PROFILE_ID = "profile-plone.formwidget.geolocation:default"
1211

plone/formwidget/geolocation/vocabularies.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
from zope.schema.vocabulary import SimpleTerm
77
from zope.schema.vocabulary import SimpleVocabulary
88

9-
109
default_map_layer = "OpenStreetMap.Mapnik"
1110
default_map_layers = [
1211
"OpenStreetMap.Mapnik",

setup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
import os
55

6-
76
version = "3.0.8.dev0"
87

98

0 commit comments

Comments
 (0)