File rtslib-fix-parse-error-with-new-pyparsing.patch of Package python-rtslib.6375

From: Lee Duncan <lduncan@suse.com>
Date: Tue Oct 17 17:56:33 PDT 2017
Subject: [rtslib] fix parse error with new pyparsing
Patch-mainline: never: rtslib is no longer maintained upstream
Reference: bsc#1058995

The newest version of pyparsing causes rtslib to get an error
when saving configuration that looks like:

    AttributeError: 'list' object has no attribute 'asList'

---
diff -aurp rtslib-3.0pre4.orig/rtslib/config_parser.py rtslib-3.0pre4/rtslib/config_parser.py
--- rtslib-3.0pre4.orig/rtslib/config_parser.py	2014-10-30 11:03:58.000000000 -0700
+++ rtslib-3.0pre4/rtslib/config_parser.py	2017-10-17 17:55:09.274222998 -0700
@@ -225,7 +225,7 @@ class PolicyParser(ConfigParser):
         value = tokin[0].asDict()
         ref_path = value.get('ref_path')
         if ref_path is not None:
-            ref_path = " ".join(ref_path.asList())
+            ref_path = " ".join(ref_path)
         tokout = {'type': 'attr',
                   'line': pp.lineno(idx, source),
                   'col': pp.col(idx, source),
openSUSE Build Service is sponsored by