Skip to content

Commit

Permalink
hg-to-git: don't import the unused popen2 module
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Miklos Vajna authored and Junio C Hamano committed Aug 4, 2009
1 parent 69931b7 commit b0c051d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/hg-to-git/hg-to-git.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b0c051d

Please sign in to comment.