[Python-modules-commits] [python-pynzb] 02/07: set message_id properly in expat parser

Carl Suster arcresu-guest at moszumanska.debian.org
Mon Jan 9 01:19:04 UTC 2017


This is an automated email from the git hooks/post-receive script.

arcresu-guest pushed a commit to branch master
in repository python-pynzb.

commit 0a5a3e9b44be1ec1a150c027a07754a53f039189
Author: Carl Suster <carl at contraflo.ws>
Date:   Mon Jan 9 11:57:13 2017 +1100

    set message_id properly in expat parser
    
    Upstream had a typo in the expat parser wrapper which called the
    non-existent message_id() when set_message_id() was intended.
---
 pynzb/expat_nzb.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pynzb/expat_nzb.py b/pynzb/expat_nzb.py
index 5c1b096..313dee6 100644
--- a/pynzb/expat_nzb.py
+++ b/pynzb/expat_nzb.py
@@ -22,7 +22,7 @@ class ExpatNZBParser(BaseNZBParser):
         elif name == 'group':
             self.current_file.add_group(self.current_data)
         elif name == 'segment':
-            self.current_segment.message_id(self.current_data)
+            self.current_segment.set_message_id(self.current_data)
             self.current_file.add_segment(self.current_segment)
     
     def char_data(self, data):

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-pynzb.git



More information about the Python-modules-commits mailing list