Comment in crontab file
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-crontab |
Invalid
|
Undecided
|
Unassigned |
Bug Description
With a file as below
+------
#at reboot start ixelbox daemon
# @reboot c:\python27\
# execute each 5 mn, do test.py scripts
*/5 * * * * C:\Users\
-------
the second line is not perform as a comment but as a cron line (# is ignored)
Solution: in method 'parse' of class 'CronItem'
add a return before the 2 calls of metod self._set_parse
def parse(self, line):
"""Parse a cron line string and save the info as the objects."""
line = _unicode(line)
if not line or line[0] == '#':
line = line[1:].strip()
return # YD
Changed in python-crontab: | |
status: | Incomplete → Invalid |
Versions are;
python-crontab is 2.0.1
Python is 2.7.11