@matheusbsbs / matheus-bagliano / commits / b0c051d1a0
Fork 0

hg-to-git: don't import the unused popen2 module

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>

Miklos Vajna committed Aug 3, 2009 at 18:41 UTC b0c051d1a0939ed0013d359065b3afaebe3a717f
1 file changed +1 -1
contrib/hg-to-git/hg-to-git.py
+1 -1
@@ -20,7 +20,7 @@
20 """
21
22 import os, os.path, sys
23 -import tempfile, popen2, pickle, getopt
23 +import tempfile, pickle, getopt
24 import re
25
26 # Maps hg version -> git version