sgzwiz / brython

Automatically exported from code.google.com/p/brython
BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

Tabs can't be used for indentation #14

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. create function indented with tabs instead of spaces:

def test(s):
    pass

Raises IndentationError in javascript error console:

Error: IndentationError: IndentationError: expected an indented block
Source: http://brython.info/py_utils.js
Line: 33

Please provide any additional information below.
It looks like parser/tokenizer doesn't recognize tabs as valid indentation.

Original issue reported on code.google.com by bystrousak@kitakitsune.org on 24 Dec 2012 at 12:27

GoogleCodeExporter commented 9 years ago
Fixed in version 20121229-085018
Follows the rule of Python 3 (Reference, $1.2.8)

Original comment by pierre.q...@gmail.com on 29 Dec 2012 at 7:59