Removed unused variables.
This commit is contained in:
parent
978ad6d4c0
commit
a375e911ef
|
@ -110,8 +110,6 @@ def create_reference_role(rolename, urlbase):
|
||||||
def _role(name, rawtext, text, lineno, inliner, options=None, content=None):
|
def _role(name, rawtext, text, lineno, inliner, options=None, content=None):
|
||||||
if options is None:
|
if options is None:
|
||||||
options = {}
|
options = {}
|
||||||
if content is None:
|
|
||||||
content = []
|
|
||||||
node = docutils.nodes.reference(
|
node = docutils.nodes.reference(
|
||||||
rawtext,
|
rawtext,
|
||||||
text,
|
text,
|
||||||
|
@ -128,8 +126,6 @@ def create_reference_role(rolename, urlbase):
|
||||||
def default_reference_role(name, rawtext, text, lineno, inliner, options=None, content=None):
|
def default_reference_role(name, rawtext, text, lineno, inliner, options=None, content=None):
|
||||||
if options is None:
|
if options is None:
|
||||||
options = {}
|
options = {}
|
||||||
if content is None:
|
|
||||||
content = []
|
|
||||||
context = inliner.document.settings.default_reference_context
|
context = inliner.document.settings.default_reference_context
|
||||||
node = docutils.nodes.reference(
|
node = docutils.nodes.reference(
|
||||||
rawtext,
|
rawtext,
|
||||||
|
|
|
@ -86,7 +86,6 @@ class ContentTypeManager(models.Manager):
|
||||||
model__in=needed_models
|
model__in=needed_models
|
||||||
)
|
)
|
||||||
for ct in cts:
|
for ct in cts:
|
||||||
model = ct.model_class()
|
|
||||||
opts_models = needed_opts.pop(ct.model_class()._meta, [])
|
opts_models = needed_opts.pop(ct.model_class()._meta, [])
|
||||||
for model in opts_models:
|
for model in opts_models:
|
||||||
results[model] = ct
|
results[model] = ct
|
||||||
|
|
|
@ -271,7 +271,6 @@ class Command(BaseCommand):
|
||||||
# unmodified files.
|
# unmodified files.
|
||||||
can_skip_unmodified_files = not (self.symlink ^ os.path.islink(full_path))
|
can_skip_unmodified_files = not (self.symlink ^ os.path.islink(full_path))
|
||||||
else:
|
else:
|
||||||
full_path = None
|
|
||||||
# In remote storages, skipping is only based on the
|
# In remote storages, skipping is only based on the
|
||||||
# modified times since symlinks aren't relevant.
|
# modified times since symlinks aren't relevant.
|
||||||
can_skip_unmodified_files = True
|
can_skip_unmodified_files = True
|
||||||
|
|
Loading…
Reference in New Issue