- cmd = "diff --ed - %s | gzip -c -9 > %s.gz" % (newfile, difffile)
- # Do we need shell=True?
- w = subprocess.Popen(cmd, shell=True, stdin=PIPE).stdin
-
- # I bet subprocess can do that better than this, but lets do little steps
+ w = os.popen("diff --ed - %s | gzip --rsyncable -c -9 > %s.gz" %
+ (newfile, difffile), "w")