summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/event
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2014-01-12 17:15:41 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2014-01-12 17:15:41 -0500
commit86c3855c9bafb52cb71df7e958196d27ca4dc578 (patch)
treead294ff5c3c04a09e3fa86a1c9b911c04a49708a /lib/sqlalchemy/event
parente2de4783cc08729f7fbc00ce0b94d5e59ff9a34f (diff)
downloadsqlalchemy-86c3855c9bafb52cb71df7e958196d27ca4dc578.tar.gz
- bump up how many args for "named arg style" to four
Diffstat (limited to 'lib/sqlalchemy/event')
-rw-r--r--lib/sqlalchemy/event/legacy.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/event/legacy.py b/lib/sqlalchemy/event/legacy.py
index 0b0d290fa..d8a66674d 100644
--- a/lib/sqlalchemy/event/legacy.py
+++ b/lib/sqlalchemy/event/legacy.py
@@ -73,7 +73,7 @@ def _standard_listen_example(dispatch_descriptor, sample_target, fn):
"\n # ... (event handling logic) ...\n"
)
- if len(dispatch_descriptor.arg_names) > 2:
+ if len(dispatch_descriptor.arg_names) > 3:
text += (
"\n# named argument style (new in 0.9)\n"