# [PATCH] hg-to-git: don't import the unused popen2 module

1 messages from 2009-08-03 to 2009-08-03. Participants: Miklos Vajna.
Thread: https://gitlist.dev/t/20356

## Miklos Vajna, 2009-08-03 16:41

Subject: [PATCH] hg-to-git: don't import the unused popen2 module
Message-ID: <20090803164134.GZ23059@genesis.frugalware.org>
URL: https://gitlist.dev/e/20090803164134.GZ23059%40genesis.frugalware.org

```
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>
---
 contrib/hg-to-git/hg-to-git.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/contrib/hg-to-git/hg-to-git.py b/contrib/hg-to-git/hg-to-git.py
index 7b03204..2a6839d 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
-- 
1.6.4

```
