Revision c6b1c8ef autotools/check-news

b/autotools/check-news
51 51

  
52 52
    if DASHES_RE.match(line):
53 53
      if not prevline.startswith("Version "):
54
        raise Exception("Line %s: Invalid title" % (fileinput.lineno() - 1))
54
        raise Exception("Line %s: Invalid title" % (fileinput.filelineno() - 1))
55 55
      expect_date = True
56 56

  
57 57
    elif expect_date:
......
66 66

  
67 67
      m = RELEASED_RE.match(line)
68 68
      if not m:
69
        raise Exception("Line %s: Invalid release line" % fileinput.lineno())
69
        raise Exception("Line %s: Invalid release line" %
70
                        fileinput.filelineno())
70 71

  
71 72
      # Including the weekday in the date string does not work as time.strptime
72 73
      # would return an inconsistent result if the weekday is incorrect.
......
77 78
      # Check weekday
78 79
      if m.group("day") != weekday:
79 80
        raise Exception("Line %s: %s was/is a %s, not %s" %
80
                        (fileinput.lineno(), parsed, weekday, m.group("day")))
81
                        (fileinput.filelineno(), parsed, weekday,
82
                         m.group("day")))
81 83

  
82 84
      expect_date = False
83 85

  

Also available in: Unified diff