Skip to content

Commit f5e1756

Browse files
committed
remove old python2 things
1 parent ecba285 commit f5e1756

File tree

8 files changed

+2
-18
lines changed

8 files changed

+2
-18
lines changed

docs/generate_html_pages.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
# default, lovelace and xcode are "normal" styles
1414
"""
1515

16-
from __future__ import print_function
17-
1816
import os
1917
import sys
2018
import talib
@@ -103,10 +101,7 @@ def get_doc_links():
103101
with open(html_file_path, 'r') as f:
104102
html = f.read()
105103
else:
106-
if sys.version_info < (2, 8):
107-
from urllib2 import urlopen
108-
else:
109-
from urllib.request import urlopen
104+
from urllib.request import urlopen
110105

111106
html = urlopen(tadoc_homepage).read()
112107
with open(html_file_path, 'wb') as f:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ classifiers = [
3535
]
3636
dependencies = [
3737
"build",
38-
"cython>=3.1.3",
38+
"cython",
3939
"numpy",
4040
"pip",
4141
]

tests/conftest.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
from __future__ import print_function
2-
31
import pytest
42
import numpy as np
53

tools/example.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
from __future__ import print_function
2-
31
import sys
42
import numpy as np
53
import pylab

tools/generate_func.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
from __future__ import print_function
2-
31
import os
42
import re
53
import sys

tools/generate_stream.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
from __future__ import print_function
2-
31
import os
42
import re
53
import sys

tools/perf_talib.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
from __future__ import print_function
2-
31
import numpy
42
import talib
53
import time

tools/threads_talib.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
from __future__ import print_function
21
import time
32
import threading
43

0 commit comments

Comments
 (0)