added code quality comment about masking of locals builtin

This commit is contained in:
Tavis Rudd
2010-02-27 01:26:21 -05:00
parent cea4fc8188
commit aaba23f25d

View File

@@ -38,7 +38,8 @@ class FileProxy(object):
f = object.__getattribute__(self, 'f')
return getattr(f, attr)
# @@tavis: the `locals` args below mask the built-in function. Should
# be renamed.
class SocketConsole(greenlets.greenlet):
def __init__(self, desc, hostport, locals):
self.hostport = hostport
@@ -108,4 +109,3 @@ def backdoor((conn, addr), locals=None):
if __name__ == '__main__':
backdoor_server(eventlet.listen(('127.0.0.1', 9000)), {})