summaryrefslogtreecommitdiffstats
path: root/Lib/lib2to3/refactor.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2011-03-26 22:56:28 (GMT)
committerBenjamin Peterson <benjamin@python.org>2011-03-26 22:56:28 (GMT)
commit8d6c62dd892de77295e9db7b1c56fec041726afb (patch)
tree95c6866844be8485c210b2f456747e759e551d28 /Lib/lib2to3/refactor.py
parentb8a5769a6d35931f4dc5395686f590b5dcb58cdd (diff)
downloadcpython-8d6c62dd892de77295e9db7b1c56fec041726afb.zip
cpython-8d6c62dd892de77295e9db7b1c56fec041726afb.tar.gz
cpython-8d6c62dd892de77295e9db7b1c56fec041726afb.tar.bz2
check possible recursive _as_parameter_ to prevent segfault (closes #1838)
Diffstat (limited to 'Lib/lib2to3/refactor.py')
-rw-r--r--Lib/lib2to3/refactor.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/lib2to3/refactor.py b/Lib/lib2to3/refactor.py
index ae5e40f..ca07be6 100644
--- a/Lib/lib2to3/refactor.py
+++ b/Lib/lib2to3/refactor.py
@@ -500,7 +500,7 @@ class RefactoringTool(object):
node = new
def processed_file(self, new_text, filename, old_text=None, write=False,
- encoding=None):
+ encoding=None, newlines=None):
"""
Called when a file has been refactored, and there are changes.
"""