Skip to content

Commit b7c3ac6

Browse files
committed
remove six usage
1 parent 44bc943 commit b7c3ac6

File tree

2 files changed

+10
-14
lines changed

2 files changed

+10
-14
lines changed

docs/source/conf.py

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
# serve to show the default.
1313

1414
import re
15-
import six
1615
import sys, os, os.path
1716

1817
# If extensions (or modules to document with autodoc) are in another directory,
@@ -43,8 +42,8 @@
4342
out = os.path.join(static_root, '%s.html' % script)
4443
if os.path.exists(out):
4544
os.unlink(out)
46-
with open(out, 'wb+') as f:
47-
f.write(six.u(html))
45+
with open(out, 'w') as f:
46+
f.write(html)
4847

4948
# -- General configuration -----------------------------------------------------
5049

@@ -68,8 +67,8 @@
6867
master_doc = 'index'
6968

7069
# General information about the project.
71-
project = u'django-session-security'
72-
copyright = u'2012-2015, James Pic and contributors'
70+
project = 'django-session-security'
71+
copyright = '2012-2015, James Pic and contributors'
7372

7473
# The version info for the project you're documenting, acts as replacement for
7574
# |version| and |release|, also used in various other places throughout the
@@ -211,8 +210,8 @@
211210
# Grouping the document tree into LaTeX files. List of tuples
212211
# (source start file, target name, title, author, documentclass [howto/manual]).
213212
latex_documents = [
214-
('index', 'django-session-security.tex', u'django-session-security Documentation',
215-
u'James Pic', 'manual'),
213+
('index', 'django-session-security.tex', 'django-session-security Documentation',
214+
'James Pic', 'manual'),
216215
]
217216

218217
# The name of an image file (relative to this directory) to place at the top of
@@ -241,8 +240,8 @@
241240
# One entry per manual page. List of tuples
242241
# (source start file, name, description, authors, manual section).
243242
man_pages = [
244-
('index', 'django-session-security', u'django-session-security Documentation',
245-
[u'James Pic'], 1)
243+
('index', 'django-session-security', 'django-session-security Documentation',
244+
['James Pic'], 1)
246245
]
247246

248247
# If true, show URL addresses after external links.
@@ -255,8 +254,8 @@
255254
# (source start file, target name, title, author,
256255
# dir menu entry, description, category)
257256
texinfo_documents = [
258-
('index', 'django-session-security', u'django-session-security Documentation',
259-
u'James Pic', 'django-session-security', 'One line description of project.',
257+
('index', 'django-session-security', 'django-session-security Documentation',
258+
'James Pic', 'django-session-security', 'One line description of project.',
260259
'Miscellaneous'),
261260
]
262261

session_security/tests/test_views.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
from __future__ import unicode_literals
2-
3-
41
import time
52
from datetime import datetime, timedelta
63
import unittest

0 commit comments

Comments
 (0)