File: 000-ttl-code-fix

package info (click to toggle)
python-pyrss2gen 1.1-2
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, sid, trixie
  • size: 108 kB
  • sloc: python: 478; makefile: 2
file content (11 lines) | stat: -rw-r--r-- 327 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
--- a/PyRSS2Gen.py
+++ b/PyRSS2Gen.py
@@ -350,7 +350,7 @@
         ttl = self.ttl
         if isinstance(self.ttl, int):
             ttl = IntElement("ttl", ttl)
-        _opt_element(handler, "tt", ttl)
+        _opt_element(handler, "ttl", ttl)
 
         if self.image is not None:
             self.image.publish(handler)