mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-04-23 18:42:06 +03:00
No need to use unicode strings with Python3
This commit is contained in:
parent
549dde1db3
commit
14321dd5d9
16
docs/conf.py
16
docs/conf.py
|
@ -60,18 +60,18 @@ source_suffix = ".rst"
|
|||
master_doc = "index"
|
||||
|
||||
# General information about the project.
|
||||
project = u"Graphene Django"
|
||||
copyright = u"Graphene 2017"
|
||||
author = u"Syrus Akbary"
|
||||
project = "Graphene Django"
|
||||
copyright = "Graphene 2017"
|
||||
author = "Syrus Akbary"
|
||||
|
||||
# The version info for the project you're documenting, acts as replacement for
|
||||
# |version| and |release|, also used in various other places throughout the
|
||||
# built documents.
|
||||
#
|
||||
# The short X.Y version.
|
||||
version = u"1.0"
|
||||
version = "1.0"
|
||||
# The full version, including alpha/beta/rc tags.
|
||||
release = u"1.0.dev"
|
||||
release = "1.0.dev"
|
||||
|
||||
# The language for content autogenerated by Sphinx. Refer to documentation
|
||||
# for a list of supported languages.
|
||||
|
@ -276,7 +276,7 @@ latex_elements = {
|
|||
# (source start file, target name, title,
|
||||
# author, documentclass [howto, manual, or own class]).
|
||||
latex_documents = [
|
||||
(master_doc, "Graphene.tex", u"Graphene Documentation", u"Syrus Akbary", "manual")
|
||||
(master_doc, "Graphene.tex", "Graphene Documentation", "Syrus Akbary", "manual")
|
||||
]
|
||||
|
||||
# The name of an image file (relative to this directory) to place at the top of
|
||||
|
@ -317,7 +317,7 @@ latex_documents = [
|
|||
# One entry per manual page. List of tuples
|
||||
# (source start file, name, description, authors, manual section).
|
||||
man_pages = [
|
||||
(master_doc, "graphene_django", u"Graphene Django Documentation", [author], 1)
|
||||
(master_doc, "graphene_django", "Graphene Django Documentation", [author], 1)
|
||||
]
|
||||
|
||||
# If true, show URL addresses after external links.
|
||||
|
@ -334,7 +334,7 @@ texinfo_documents = [
|
|||
(
|
||||
master_doc,
|
||||
"Graphene-Django",
|
||||
u"Graphene Django Documentation",
|
||||
"Graphene Django Documentation",
|
||||
author,
|
||||
"Graphene Django",
|
||||
"One line description of project.",
|
||||
|
|
|
@ -46,7 +46,7 @@ class Reporter(models.Model):
|
|||
"Reporter Type",
|
||||
null=True,
|
||||
blank=True,
|
||||
choices=[(1, u"Regular"), (2, u"CNN Reporter")],
|
||||
choices=[(1, "Regular"), (2, "CNN Reporter")],
|
||||
)
|
||||
|
||||
def __str__(self): # __unicode__ on Python 2
|
||||
|
@ -105,7 +105,7 @@ class Article(models.Model):
|
|||
"Importance",
|
||||
null=True,
|
||||
blank=True,
|
||||
choices=[(1, u"Very important"), (2, u"Not as important")],
|
||||
choices=[(1, "Very important"), (2, "Not as important")],
|
||||
)
|
||||
|
||||
def __str__(self): # __unicode__ on Python 2
|
||||
|
|
Loading…
Reference in New Issue
Block a user