equal
deleted
inserted
replaced
10 # distributed under the License is distributed on an "AS IS" BASIS, |
10 # distributed under the License is distributed on an "AS IS" BASIS, |
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
12 # See the License for the specific language governing permissions and |
12 # See the License for the specific language governing permissions and |
13 # limitations under the License. |
13 # limitations under the License. |
14 |
14 |
15 # pylint: disable=too-many-function-args,undefined-variable,no-absolute-import,assign-to-new-keyword |
15 # pylint: disable=too-many-function-args,undefined-variable,no-absolute-import,assign-to-new-keyword,nonzero-method,next-method-called,next-method-defined |
16 |
16 |
17 # iteration from Bob Ippolito's Iteration in JavaScript |
17 # iteration from Bob Ippolito's Iteration in JavaScript |
18 |
18 |
19 from __pyjamas__ import JS |
19 from __pyjamas__ import JS |
20 |
20 |
283 |
283 |
284 def toString(self): |
284 def toString(self): |
285 return "AttributeError: %s of %s" % (self.args[1], self.args[0]) |
285 return "AttributeError: %s of %s" % (self.args[1], self.args[0]) |
286 |
286 |
287 |
287 |
288 JS(""" |
288 JS(r""" |
289 pyjslib.StopIteration = function () { }; |
289 pyjslib.StopIteration = function () { }; |
290 pyjslib.StopIteration.prototype = new Error(); |
290 pyjslib.StopIteration.prototype = new Error(); |
291 pyjslib.StopIteration.name = 'StopIteration'; |
291 pyjslib.StopIteration.name = 'StopIteration'; |
292 pyjslib.StopIteration.message = 'StopIteration'; |
292 pyjslib.StopIteration.message = 'StopIteration'; |
293 |
293 |