diff options
author | Eevee (Alex Munroe) <eevee.git@veekun.com> | 2013-07-29 18:29:59 -0700 |
---|---|---|
committer | Eevee (Alex Munroe) <eevee.git@veekun.com> | 2013-07-29 18:29:59 -0700 |
commit | 1981a2bad85b31ee46628e588e549e3bb0dab781 (patch) | |
tree | 73a22670ed256c85c0b70c9d09eb3ec5aa2f0005 | |
parent | 50d6599e070da763f616882aaa7d0048a36512f8 (diff) | |
download | pyscss-1981a2bad85b31ee46628e588e549e3bb0dab781.tar.gz |
Avoid importing pstats unless absolutely necessary.
It's packaged separately on Debian for licensing reasons, so may not be
available.
-rw-r--r-- | scss/util.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scss/util.py b/scss/util.py index f65d335..fae1868 100644 --- a/scss/util.py +++ b/scss/util.py @@ -2,7 +2,6 @@ import re import sys import time -import pstats import cProfile try: from cStringIO import StringIO @@ -113,6 +112,7 @@ def print_timing(level=0): ################################################################################ # Profiler decorator def profile(fn): + import pstats def wrapper(*args, **kwargs): profiler = cProfile.Profile() stream = StringIO() |