Skip to content

Commit aab5e45

Browse files
committed
Removed six dependency
Moved lib/iommi -> iommi
1 parent 96be52e commit aab5e45

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+5
-6
lines changed

MANIFEST.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ include HISTORY.rst
44
include LICENSE
55
include README.rst
66
include requirements.txt
7-
recursive-include lib/iommi/templates *
7+
exclude tests/*
8+
recursive-include iommi/templates *
File renamed without changes.
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,10 @@ def render_template(request, template, context):
3737
@type template: str|django.template.Template|django.template.backends.django.Template
3838
@type context: dict
3939
"""
40-
import six
4140
from iommi._web_compat import Template
4241
if template is None:
4342
return ''
44-
elif isinstance(template, six.string_types):
43+
elif isinstance(template, str):
4544
return render_to_string(template_name=template, context=context, request=request)
4645
elif isinstance(template, Template):
4746
return template.render(RequestContext(request, context))
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)