Changeset 391 for python/trunk/Lib/commands.py
- Timestamp:
- Mar 19, 2014, 11:31:01 PM (11 years ago)
- Location:
- python/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
python/trunk
-
Property svn:mergeinfo
set to
/python/vendor/Python-2.7.6 merged eligible /python/vendor/current merged eligible
-
Property svn:mergeinfo
set to
-
python/trunk/Lib/commands.py
r2 r391 19 19 [Note: it would be nice to add functions to interpret the exit status.] 20 20 """ 21 from warnings import warnpy3k 22 warnpy3k("the commands module has been removed in Python 3.0; " 23 "use the subprocess module instead", stacklevel=2) 24 del warnpy3k 21 25 22 26 __all__ = ["getstatusoutput","getoutput","getstatus"] … … 64 68 # 65 69 def mk2arg(head, x): 66 from warnings import warnpy3k67 warnpy3k("In 3.x, mk2arg has been removed.")68 70 import os 69 71 return mkarg(os.path.join(head, x)) … … 78 80 # 79 81 def mkarg(x): 80 from warnings import warnpy3k81 warnpy3k("in 3.x, mkarg has been removed.")82 82 if '\'' not in x: 83 83 return ' \'' + x + '\''
Note:
See TracChangeset
for help on using the changeset viewer.