Patchwork cleanup: remove unused imports

login
register
mail settings
Submitter Simon Heimberg
Date June 12, 2013, 11:37 p.m.
Message ID <b890b21f5e9f72ddc4b7.1371080279@lapsi.heimberg.home>
Download mbox | patch
Permalink /patch/1723/
State Accepted, archived
Headers show

Comments

Simon Heimberg - June 12, 2013, 11:37 p.m.
# HG changeset patch
# User Simon Heimberg <simohe@besonet.ch>
# Date 1371080218 -7200
# Node ID b890b21f5e9f72ddc4b71fc7ae1523999aba28d8
# Parent  ba9bff4b8baa88443aeea630c4d2fc69ef564992
cleanup: remove unused imports

detected by pyflakes
Matt Mackall - June 13, 2013, 8:29 p.m.
On Thu, 2013-06-13 at 01:37 +0200, Simon Heimberg wrote:
> # HG changeset patch
> # User Simon Heimberg <simohe@besonet.ch>
> # Date 1371080218 -7200
> # Node ID b890b21f5e9f72ddc4b71fc7ae1523999aba28d8
> # Parent  ba9bff4b8baa88443aeea630c4d2fc69ef564992
> cleanup: remove unused imports

Queued for default, thanks.

Patch

diff -r ba9bff4b8baa -r b890b21f5e9f contrib/casesmash.py
--- a/contrib/casesmash.py	Don Jun 13 01:25:59 2013 +0200
+++ b/contrib/casesmash.py	Don Jun 13 01:36:58 2013 +0200
@@ -1,4 +1,4 @@ 
-import sys, os, __builtin__
+import os, __builtin__
 from mercurial import util
 
 def lowerwrap(scope, funcname):
diff -r ba9bff4b8baa -r b890b21f5e9f contrib/perf.py
--- a/contrib/perf.py	Don Jun 13 01:25:59 2013 +0200
+++ b/contrib/perf.py	Don Jun 13 01:36:58 2013 +0200
@@ -1,7 +1,7 @@ 
 # perf.py - performance test routines
 '''helper extension to measure performance'''
 
-from mercurial import cmdutil, scmutil, util, match, commands, obsolete
+from mercurial import cmdutil, scmutil, util, commands, obsolete
 from mercurial import repoview, branchmap, merge, copies
 import time, os, sys
 
diff -r ba9bff4b8baa -r b890b21f5e9f contrib/synthrepo.py
--- a/contrib/synthrepo.py	Don Jun 13 01:25:59 2013 +0200
+++ b/contrib/synthrepo.py	Don Jun 13 01:36:58 2013 +0200
@@ -36,7 +36,7 @@ 
 '''
 
 import bisect, collections, json, os, random, time, sys
-from mercurial import cmdutil, context, patch, scmutil, url, util, hg
+from mercurial import cmdutil, context, patch, scmutil, util, hg
 from mercurial.i18n import _
 from mercurial.node import nullrev, nullid
 
diff -r ba9bff4b8baa -r b890b21f5e9f doc/gendoc.py
--- a/doc/gendoc.py	Don Jun 13 01:25:59 2013 +0200
+++ b/doc/gendoc.py	Don Jun 13 01:36:58 2013 +0200
@@ -4,7 +4,6 @@ 
 # fall back to pure modules if required C extensions are not available
 sys.path.append(os.path.join('..', 'mercurial', 'pure'))
 from mercurial import demandimport; demandimport.enable()
-from mercurial import encoding
 from mercurial import minirst
 from mercurial.commands import table, globalopts
 from mercurial.i18n import gettext, _
diff -r ba9bff4b8baa -r b890b21f5e9f tests/run-tests.py
--- a/tests/run-tests.py	Don Jun 13 01:25:59 2013 +0200
+++ b/tests/run-tests.py	Don Jun 13 01:36:58 2013 +0200
@@ -56,7 +56,6 @@ 
 import re
 import threading
 import killdaemons as killmod
-import cPickle as pickle
 import Queue as queue
 
 processlock = threading.Lock()
diff -r ba9bff4b8baa -r b890b21f5e9f tests/test-pathencode.py
--- a/tests/test-pathencode.py	Don Jun 13 01:25:59 2013 +0200
+++ b/tests/test-pathencode.py	Don Jun 13 01:36:58 2013 +0200
@@ -5,7 +5,6 @@ 
 # that have proven likely to expose bugs and divergent behaviour in
 # different encoding implementations.
 
-from mercurial import parsers
 from mercurial import store
 import binascii, itertools, math, os, random, sys, time
 import collections
diff -r ba9bff4b8baa -r b890b21f5e9f tests/test-ui-color.py
--- a/tests/test-ui-color.py	Don Jun 13 01:25:59 2013 +0200
+++ b/tests/test-ui-color.py	Don Jun 13 01:36:58 2013 +0200
@@ -1,4 +1,4 @@ 
-import os, sys
+import os
 from hgext import color
 from mercurial import dispatch, ui