Revert "cleanup"

This reverts commit 3fa197298b.

Trying to import extras/subprocess first fails on Python 3.{1,2}.
This commit is contained in:
Jerome Carretero 2012-02-08 00:42:08 -05:00
parent 1553cb2dd6
commit a30aa80dcc
1 changed files with 5 additions and 2 deletions

View File

@ -11,9 +11,12 @@ through Python versions 2.3 to 3.X and across different platforms (win32, linux,
import os, sys, errno, traceback, inspect, re, shutil, datetime, gc
try:
from waflib.extras import subprocess
except ImportError:
import subprocess
except:
try:
import waflib.extras.subprocess as subprocess
except:
print("The subprocess module is missing (python2.3?):\n try calling 'waf update --files=subprocess'\n or add a copy of subprocess.py to the python libraries")
try:
from collections import deque