Skip to content

Commit 5dbcb72

Browse files
committed
u"string" is not necessary in Python 3
1 parent aae510a commit 5dbcb72

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

docs/backend/fields.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ class IMySchema(model.Schema):
161161
form.read_permission(secret="cmf.ManagePortal")
162162
form.write_permission(secret="cmf.ManagePortal")
163163
secret = schema.TextLine(
164-
title = u"Secret",
164+
title = "Secret",
165165
)
166166
```
167167

docs/backend/schemas.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -241,13 +241,13 @@ class IMySchema(model.Schema):
241241
242242
form.omitted("dummy")
243243
dummy = schema.Text(
244-
title=u"Dummy"
244+
title="Dummy"
245245
)
246246
247247
form.omitted("edit_only")
248248
form.no_omit(IEditForm, "edit_only")
249249
edit_only = schema.TextLine(
250-
title = u"Only included on edit forms",
250+
title = "Only included on edit forms",
251251
)
252252
```
253253

@@ -287,14 +287,14 @@ from plone.autoform import directives as form
287287
class IMySchema(model.Schema):
288288
289289
summary = schema.Text(
290-
title=u"Summary",
291-
description=u"Summary of the body",
290+
title="Summary",
291+
description="Summary of the body",
292292
readonly=True
293293
)
294294
295295
form.order_before(not_last="summary")
296296
not_last = schema.TextLine(
297-
title=u"Not last",
297+
title="Not last",
298298
)
299299
```
300300

@@ -332,16 +332,16 @@ from plone.autoform import directives as form
332332
class IMySchema(model.Schema):
333333
334334
model.fieldset("extra",
335-
label=u"Extra info",
335+
label="Extra info",
336336
fields=["footer", "dummy"]
337337
)
338338
339339
footer = schema.Text(
340-
title=u"Footer text",
340+
title="Footer text",
341341
)
342342
343343
dummy = schema.Text(
344-
title=u"Dummy"
344+
title="Dummy"
345345
)
346346
```
347347

docs/backend/widgets.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ class IMySchema(model.Schema):
9595
form.mode(secret="hidden")
9696
form.mode(IEditForm, secret="input")
9797
secret = schema.TextLine(
98-
title=u"Secret",
99-
default=u"Secret stuff (except on edit forms)"
98+
title="Secret",
99+
default="Secret stuff (except on edit forms)"
100100
)
101101
```
102102

0 commit comments

Comments
 (0)