diff --git a/fanficfare/fff_profile.py b/fanficfare/fff_profile.py index de2a7cd1..a4ba8345 100644 --- a/fanficfare/fff_profile.py +++ b/fanficfare/fff_profile.py @@ -13,9 +13,10 @@ # limitations under the License. # -## not compatibly with py2 SortKey not available. +## not compatibly with py2, SortKey not available. import sys -if sys.version_info >= (2, 9): +DO_PROFILING = False +if DO_PROFILING and sys.version_info >= (3, 7): from io import StringIO import cProfile, pstats from pstats import SortKey