# HG changeset patch # User Gregory Szorc # Date 2016-08-15 02:13:32 # Node ID ad4c0236168dc374e73f9fc0987c03bcd2a2d618 # Parent b032a7b676c6637b2ac6f3ef29431013b15a08f9 statprof: fix flake8 warnings My local flake8 hook informed me of these warnings in the upstream code. Fix them. diff --git a/mercurial/statprof.py b/mercurial/statprof.py --- a/mercurial/statprof.py +++ b/mercurial/statprof.py @@ -104,11 +104,10 @@ main thread's work patterns. # no-check-code from __future__ import division -import inspect, json, os, signal, tempfile, sys, getopt, threading, traceback +import inspect, json, os, signal, tempfile, sys, getopt, threading import time from collections import defaultdict from contextlib import contextmanager -from subprocess import call __all__ = ['start', 'stop', 'reset', 'display', 'profile'] @@ -328,7 +327,7 @@ def save_data(path=None): file.write(time + '\0' + '\0'.join(sites) + '\n') file.close() - except (IOError, OSError) as ex: + except (IOError, OSError): # The home directory probably didn't exist, or wasn't writable. Oh well. pass