Skip to content

Commit 62a5512

Browse files
committed
fix warnings
1 parent eb8407d commit 62a5512

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

neo/rawio/neuralynxrawio/neuralynxrawio.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,11 +151,11 @@ def __init__(
151151

152152
if filename:
153153
include_filenames = filename
154-
raise DeprecationWarning("`filename` is deprecated and will be removed. Please use `include_filenames` instead")
154+
warnings.warn("`filename` is deprecated and will be removed. Please use `include_filenames` instead")
155155

156156
if exclude_filename:
157157
exclude_filenames = exclude_filename
158-
raise DeprecationWarning("`exclude_filename` is deprecated and will be removed. Please use `exclude_filenames` instead")
158+
warnings.warn("`exclude_filename` is deprecated and will be removed. Please use `exclude_filenames` instead")
159159

160160
if include_filenames is None:
161161
include_filenames = []

0 commit comments

Comments
 (0)