From: Miklos Vajna Date: Mon, 3 Aug 2009 16:41:34 +0000 (+0200) Subject: hg-to-git: don't import the unused popen2 module X-Git-Tag: v1.6.4.1~13^2~3 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b0c051d1a0939ed0013d359065b3afaebe3a717f;p=git.git 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 Signed-off-by: Junio C Hamano --- diff --git a/contrib/hg-to-git/hg-to-git.py b/contrib/hg-to-git/hg-to-git.py index 7b03204ed..2a6839d81 100755 --- a/contrib/hg-to-git/hg-to-git.py +++ b/contrib/hg-to-git/hg-to-git.py @@ -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