Skip to content

Commit 49558fe

Browse files
PEP8 preprocess.py
1 parent 2fe8fc4 commit 49558fe

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bpython/curtsiesfrontend/preprocess.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ def indent_empty_lines(s, compiler):
3636
def leading_tabs_to_spaces(s):
3737
lines = s.split('\n')
3838
result_lines = []
39-
tab_to_space = lambda m: len(m.group()) * 4 * ' '
39+
40+
def tab_to_space(m):
41+
return len(m.group()) * 4 * ' '
4042
for line in lines:
4143
result_lines.append(tabs_to_spaces_re.sub(tab_to_space, line))
4244
return '\n'.join(result_lines)

0 commit comments

Comments
 (0)