Skip to content

Commit 14321dd

Browse files
committed
No need to use unicode strings with Python3
1 parent 549dde1 commit 14321dd

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

docs/conf.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -60,18 +60,18 @@
6060
master_doc = "index"
6161

6262
# General information about the project.
63-
project = u"Graphene Django"
64-
copyright = u"Graphene 2017"
65-
author = u"Syrus Akbary"
63+
project = "Graphene Django"
64+
copyright = "Graphene 2017"
65+
author = "Syrus Akbary"
6666

6767
# The version info for the project you're documenting, acts as replacement for
6868
# |version| and |release|, also used in various other places throughout the
6969
# built documents.
7070
#
7171
# The short X.Y version.
72-
version = u"1.0"
72+
version = "1.0"
7373
# The full version, including alpha/beta/rc tags.
74-
release = u"1.0.dev"
74+
release = "1.0.dev"
7575

7676
# The language for content autogenerated by Sphinx. Refer to documentation
7777
# for a list of supported languages.
@@ -276,7 +276,7 @@
276276
# (source start file, target name, title,
277277
# author, documentclass [howto, manual, or own class]).
278278
latex_documents = [
279-
(master_doc, "Graphene.tex", u"Graphene Documentation", u"Syrus Akbary", "manual")
279+
(master_doc, "Graphene.tex", "Graphene Documentation", "Syrus Akbary", "manual")
280280
]
281281

282282
# The name of an image file (relative to this directory) to place at the top of
@@ -317,7 +317,7 @@
317317
# One entry per manual page. List of tuples
318318
# (source start file, name, description, authors, manual section).
319319
man_pages = [
320-
(master_doc, "graphene_django", u"Graphene Django Documentation", [author], 1)
320+
(master_doc, "graphene_django", "Graphene Django Documentation", [author], 1)
321321
]
322322

323323
# If true, show URL addresses after external links.
@@ -334,7 +334,7 @@
334334
(
335335
master_doc,
336336
"Graphene-Django",
337-
u"Graphene Django Documentation",
337+
"Graphene Django Documentation",
338338
author,
339339
"Graphene Django",
340340
"One line description of project.",

graphene_django/tests/models.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class Reporter(models.Model):
4646
"Reporter Type",
4747
null=True,
4848
blank=True,
49-
choices=[(1, u"Regular"), (2, u"CNN Reporter")],
49+
choices=[(1, "Regular"), (2, "CNN Reporter")],
5050
)
5151

5252
def __str__(self): # __unicode__ on Python 2
@@ -105,7 +105,7 @@ class Article(models.Model):
105105
"Importance",
106106
null=True,
107107
blank=True,
108-
choices=[(1, u"Very important"), (2, u"Not as important")],
108+
choices=[(1, "Very important"), (2, "Not as important")],
109109
)
110110

111111
def __str__(self): # __unicode__ on Python 2

0 commit comments

Comments
 (0)