Skip to content

Commit cb591d4

Browse files
authored
Merge pull request #20 from fchapoton/patch-1
do not use six
2 parents 9bf36a0 + b2c1686 commit cb591d4

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

setup.py

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
author='Volker Braun',
99
author_email='[email protected]',
1010
install_requires=[
11-
'six',
1211
'ipython>=4',
1312
'nbconvert>=4',
1413
'notebook',

test/test_sagenb_reader.py

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11

22
import os
33
import unittest
4-
import six
54
from sagenb_export.sagenb_reader import (
65
NotebookSageNB,
76
TextCell, ComputeCell,
87
)
98

109

11-
if six.PY2:
12-
string_type = unicode
13-
else:
14-
string_type = str
10+
try:
11+
string_type = unicode # py2
12+
except NameError:
13+
string_type = str # py3
1514

1615

1716
DOT_SAGE = os.path.join(os.path.dirname(__file__), 'dot_sage')

0 commit comments

Comments
 (0)