Advertisement
Guest User

Untitled

a guest
Aug 16th, 2011
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.35 KB | None | 0 0
  1. Index: pypy/module/posix/interp_posix.py
  2. ===================================================================
  3. --- pypy/module/posix/interp_posix.py (revision 46516:af690ea765e2)
  4. +++ pypy/module/posix/interp_posix.py (revision 46516+:af690ea765e2+)
  5. @@ -739,7 +739,7 @@
  6. if len(args_w) < 1:
  7. w_msg = space.wrap("execv() must have at least one argument")
  8. raise OperationError(space.w_ValueError, w_msg)
  9. - args = [space.str_w(w_arg) for w_arg in args_w]
  10. + args = [FileEncoder(w_arg) for w_arg in args_w]
  11. except OperationError, e:
  12. if not e.match(space, space.w_TypeError):
  13. raise
  14. @@ -760,7 +760,7 @@
  15. args: iterable of arguments
  16. env: dictionary of strings mapping to strings
  17. """
  18. - args = [space.str_w(w_arg) for w_arg in space.unpackiterable(w_args)]
  19. + args = [FileEncoder(w_arg) for w_arg in space.unpackiterable(w_args)]
  20. env = {}
  21. w_keys = space.call_method(w_env, 'keys')
  22. for w_key in space.unpackiterable(w_keys):
  23. @@ -773,7 +773,7 @@
  24.  
  25. @unwrap_spec(mode=int, path=str)
  26. def spawnv(space, mode, path, w_args):
  27. - args = [space.str_w(w_arg) for w_arg in space.unpackiterable(w_args)]
  28. + args = [FileEncoder(w_arg) for w_arg in space.unpackiterable(w_args)]
  29. try:
  30. ret = os.spawnv(mode, path, args)
  31. except OSError, e:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement