Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 077dc85

Browse files
authored
Merge pull request #191 from phobson/update-with-np-depr
use stdlib deprecation instead of numpy
2 parents f540f9d + c6da714 commit 077dc85

2 files changed

Lines changed: 5 additions & 10 deletions

File tree

‎wqio/features.py‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import warnings
2+
13
import numpy
24
import pandas
35
import seaborn
@@ -193,8 +195,8 @@ def dataframe(self):
193195
return self._dataframe
194196

195197
@property
196-
@numpy.deprecate
197198
def full_data(self):
199+
warnings.warn("Use DataCollection.dataframe instead", DeprecationWarning)
198200
return self.dataframe
199201

200202
@property

‎wqio/tests/helpers.py‎

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -244,15 +244,8 @@ def _show_system_info(): # pragma: no cover
244244

245245

246246
def checkdep_tex(): # pragma: no cover
247-
if sys.version_info[0] >= 3:
248-
249-
def byte2str(b):
250-
return b.decode("ascii")
251-
252-
else: # pragma: no cover
253-
254-
def byte2str(b):
255-
return b
247+
def byte2str(b):
248+
return b.decode("ascii")
256249

257250
try:
258251
s = subprocess.Popen(["tex", "-version"], stdout=subprocess.PIPE, stderr=subprocess.PIPE)

0 commit comments

Comments
 (0)