rdiff-backup-bugs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Rdiff-backup-bugs] [bug #26064] os.popen2 seems depricated in Python 2.


From: John Khvatov
Subject: [Rdiff-backup-bugs] [bug #26064] os.popen2 seems depricated in Python 2.6
Date: Sat, 20 Feb 2010 09:28:31 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/532.9 (KHTML, like Gecko) Chrome/4.0.305.0 Safari/532.9

Follow-up Comment #6, bug #26064 (project rdiff-backup):

reply to comment
https://bugs.launchpad.net/ubuntu/+source/rdiff-backup/+bug/436035/comments/3:

sys.version_info is a tuple of int numbers, which correctly compared with (2,
4)
>>> sys.version_info
(2, 6, 2, 'final', 0)
>>> sys.version_info > (2, 4)
True
>>>
(FYI, subprocess is available with 2.4.)

In my patch (in comment #2) shell=True for nix and shell=False for nt:
+               shell = os.name != "nt"
+               process = subprocess.Popen(remote_cmd, shell=shell, bufsize=0,

So, your patch doesn't work on nt. Right?

I don't understand why my patch fails on ubuntu..

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?26064>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]