r46892 - supporting compat func
hawkowl-TA+aISz0psMTMxyoc4vAAJOcrHinNvQL0E9HWUfgJXw@public.gmane.org
| Newsgroups | gmane.comp.python.twisted.commits |
|---|---|
| Message-ID | <[email protected]> |
Author: hawkowl
Date: Thu Mar 3 08:52:56 2016
New Revision: 46892
Modified:
branches/conch-checkers-py3-8225/twisted/python/compat.py
Log:
supporting compat func
Modified: branches/conch-checkers-py3-8225/twisted/python/compat.py
==============================================================================
--- branches/conch-checkers-py3-8225/twisted/python/compat.py (original)
+++ branches/conch-checkers-py3-8225/twisted/python/compat.py Thu Mar 3 08:52:56 2016
@@ -574,6 +574,9 @@
def items(d):
return list(d.items())
+ def _keys(d):
+ return list(d.keys())
+
xrange = range
izip = zip
else:
@@ -586,6 +589,9 @@
def items(d):
return d.items()
+ def _keys(d):
+ return d.keys()
+
xrange = xrange
from itertools import izip
izip # shh pyflakes
@@ -612,6 +618,14 @@
@rtype: L{list}
"""
+_keys.__doc__ = """
+Return a list of the keys of C{d}.
+
+@type d: L{dict}
+@rtype: L{list}
+"""
+
+
def bytesEnviron():