Changeset 388 for python/vendor/current/Lib/commands.py
- Timestamp:
- Mar 19, 2014, 11:11:30 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/vendor/current/Lib/commands.py
r2 r388 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.