Code

hg-to-git: don't import the unused popen2 module
authorMiklos Vajna <vmiklos@frugalware.org>
Mon, 3 Aug 2009 16:41:34 +0000 (18:41 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 4 Aug 2009 22:20:45 +0000 (15:20 -0700)
Importing the popen2 module in Python-2.6 results in the
"DeprecationWarning: The popen2 module is deprecated.  Use the
subprocess module." message. The module itself isn't used in fact, so
just removing it solves the problem.

Signed-off-by: Miklos Vajna <vmiklos@frugalware.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/hg-to-git/hg-to-git.py

index 7b03204ed18500756ba55818f0808b52db68d048..2a6839d81ee970cb799859c7a833f8f8cb780864 100755 (executable)
@@ -20,7 +20,7 @@
 """
 
 import os, os.path, sys
-import tempfile, popen2, pickle, getopt
+import tempfile, pickle, getopt
 import re
 
 # Maps hg version -> git version