Author: Brian Kearns <[email protected]>
Branch: stdlib-2.7.8
Changeset: r73120:3aa7ae874502
Date: 2014-08-28 16:25 -0400
http://bitbucket.org/pypy/pypy/changeset/3aa7ae874502/

Log:    line length

diff --git a/lib-python/2.7/idlelib/CallTips.py 
b/lib-python/2.7/idlelib/CallTips.py
--- a/lib-python/2.7/idlelib/CallTips.py
+++ b/lib-python/2.7/idlelib/CallTips.py
@@ -170,14 +170,16 @@
         fob = ob.im_func
         if ob.im_self is not None:
             arg_offset = 1
-    elif type(ob_call) == types.MethodType and 
hasattr(ob_call.im_func.func_code, 'co_code'):
+    elif type(ob_call) == types.MethodType and \
+            hasattr(ob_call.im_func.func_code, 'co_code'):
         # a callable class instance
         fob = ob_call.im_func
         arg_offset = 1
     else:
         fob = ob
     # Try to build one for Python defined functions
-    if type(fob) in [types.FunctionType, types.LambdaType] and 
hasattr(fob.func_code, 'co_code'):
+    if type(fob) in [types.FunctionType, types.LambdaType] and \
+            hasattr(fob.func_code, 'co_code'):
         argcount = fob.func_code.co_argcount
         real_args = fob.func_code.co_varnames[arg_offset:argcount]
         defaults = fob.func_defaults or []
@@ -200,7 +202,8 @@
     lines = (textwrap.wrap(argspec, _MAX_COLS, subsequent_indent=_INDENT)
             if len(argspec) > _MAX_COLS else [argspec] if argspec else [])
 
-    if isinstance(ob_call, types.MethodType) and 
hasattr(ob_call.im_func.func_code, 'co_code'):
+    if isinstance(ob_call, types.MethodType) and \
+            hasattr(ob_call.im_func.func_code, 'co_code'):
         doc = ob_call.__doc__
     else:
         doc = getattr(ob, "__doc__", "")
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to