Skip to content

Commit a32e44c

Browse files
Take compiler flags into account for ptipython.
1 parent 217c59f commit a32e44c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ptpython/ipython.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,8 @@ def __init__(self, ipython_shell, *a, **kw):
161161
ipython_shell.magics_manager,
162162
ipython_shell.alias_manager)
163163
kw['_lexer'] = create_lexer()
164-
kw['_validator'] = IPythonValidator()
164+
kw['_validator'] = IPythonValidator(
165+
get_compiler_flags=self.get_compiler_flags)
165166

166167
super(IPythonInput, self).__init__(*a, **kw)
167168
self.ipython_shell = ipython_shell

0 commit comments

Comments
 (0)