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

Carl Suster arcresu-guest at moszumanska.debian.org
Thu Jan 12 01:29:23 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 14d1c8d4ff4bbf5b942d553fa8638decef9f41c9
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.
    
    Forwarded: https://github.com/ericflo/pynzb/pull/4
---
 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