~certify-web-dev/twisted/certify-trunk

« back to all changes in this revision

Viewing changes to twisted/python/reflect.py

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2007-01-17 14:52:35 UTC
  • mfrom: (1.1.5 upstream) (2.1.2 etch)
  • Revision ID: james.westby@ubuntu.com-20070117145235-btmig6qfmqfen0om
Tags: 2.5.0-0ubuntu1
New upstream version, compatible with python2.5.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
import traceback
23
23
import weakref
24
24
import re
 
25
import warnings
25
26
 
26
27
RegexType = type(re.compile(""))
27
28
 
251
252
    """
252
253
    this is more documentation for myself than useful code.
253
254
    """
 
255
    warnings.warn(
 
256
        "[v2.5] Use inspect.getargspec instead of twisted.python.reflect.funcinfo",
 
257
        DeprecationWarning,
 
258
        stacklevel=2)
254
259
    code=function.func_code
255
260
    name=function.func_name
256
261
    argc=code.co_argcount