DeprecationWarning: object. init () takes no parameters

DeprecationWarning: object.__init__() takes no parameters

1 문제상황[ | ]

[root@zetawiki ~]# cat /var/log/httpd/error_log | grep 'object.__init__() takes no parameters' -A1 -m1
/usr/lib64/python2.6/site-packages/mod_python/util.py:119: DeprecationWarning: object.__init__() takes no parameters
  str.__init__(self, value)

2 해결[ | ]

  • /usr/lib64/python2.6/site-packages/mod_python/util.py의 119행 수정
변경 전
        str.__init__(self, value)
변경 후
        str.__init__(self)

3 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}