[issue13281] robotparser.RobotFileParser ignores rules preceeded by a blank line

2011-10-27 Thread Brian Bernstein
New submission from Brian Bernstein : When attempting to parse a robots.txt file which has a blank line between allow/disallow rules, all rules after the blank line are ignored. If a blank line occurs between the user-agent and its rules, all of the rules for that user-agent are ignored. I

[issue5762] AttributeError: 'NoneType' object has no attribute 'replace'

2010-09-23 Thread Brian Bernstein
Changes by Brian Bernstein : -- versions: +Python 2.6 ___ Python tracker <http://bugs.python.org/issue5762> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5762] AttributeError: 'NoneType' object has no attribute 'replace'

2010-09-23 Thread Brian Bernstein
Brian Bernstein added the comment: Experiencing this issue too. It occurs when an xml element contains a blank xmlns attribute, e.g.: {{{ }}} When toxml() is called on a minidom document with this attribute, the exception occurs. I am including a simple script that causes this crash

[issue9888] int overflow in datetime causes seg fault from datetime.ctime()

2010-09-17 Thread Brian Bernstein
Brian Bernstein added the comment: After further investigation, it appears the cause is the ability to overflow the datetime object by almost a year. I've modified the test to demonstrate this relative to the current date: from datetime import date, datetime, timedelta (datetim

[issue9888] int overflow in datetime causes seg fault from datetime.ctime()

2010-09-17 Thread Brian Bernstein
New submission from Brian Bernstein : When creating an int overflow via a subtraction operation with a datetime object and a timedelta object, the resulting datetime object can cause a segmentation fault when the ctime method is called. Segmentation Fault occurred on python 2.6.5 on 64 bit