From b60d087b1ba242c167878ed3583ffc17ef3cde95 Mon Sep 17 00:00:00 2001
From: Paul McCarthy <pauldmccarthy@gmail.com>
Date: Fri, 5 Mar 2021 18:16:36 +0000
Subject: [PATCH] MNT: Change warning stacklevel

---
 fsl/utils/filetree/__init__.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/fsl/utils/filetree/__init__.py b/fsl/utils/filetree/__init__.py
index f037014e..174b59cc 100644
--- a/fsl/utils/filetree/__init__.py
+++ b/fsl/utils/filetree/__init__.py
@@ -325,6 +325,7 @@ from .query import FileTreeQuery
 import fsl.utils.deprecated as deprecated
 
 deprecated.warn('fsl.utils.filetree',
+                stacklevel=2,
                 vin='3.6.0',
                 rin='4.0.0',
                 msg='The filetree package is now released as a separate '
-- 
GitLab