[pypy-svn] r39766 - pypy/dist/pypy/translator/js
fijal at codespeak.net
fijal at codespeak.net
Sat Mar 3 11:27:31 CET 2007
Author: fijal
Date: Sat Mar 3 11:27:28 2007
New Revision: 39766
Modified:
pypy/dist/pypy/translator/js/commproxy.py
Log:
Misunderstanding when applying patch
Modified: pypy/dist/pypy/translator/js/commproxy.py
==============================================================================
--- pypy/dist/pypy/translator/js/commproxy.py (original)
+++ pypy/dist/pypy/translator/js/commproxy.py Sat Mar 3 11:27:28 2007
@@ -14,7 +14,9 @@
str = ""
for(i in data) {
if (data[i]) {
- if (str.length != 0) {
+ if (str.length == 0) {
+ str += "?";
+ } else {
str += "&";
}
str += escape(i) + "=" + escape(data[i].toString());
@@ -38,9 +40,7 @@
str = ""
for(i in data) {
if (data[i]) {
- if (str.length == 0) {
- str += "?";
- } else {
+ if (str.length != 0) {
str += "&";
}
str += escape(i) + "=" + escape(data[i].toString());
More information about the Pypy-commit
mailing list