Hallo,
python 3 uses only the 'str' type, while python 2 also uses 'unicode'.
This patch adds a type_is_str() function to common.py - depending on the
python version, it checks for both. This helper function is used to keep
the complexity outside of the rule classes.
The rule classes get adjusted
Hello,
$subject.
This means:
- expect unicode (instead of str) when reading from a file in py2
- convert keys() result to a set to avoid test failures because of
dict_keys type
After this change, all tests work for both py2 and py3.
I propose this patch for trunk and 2.10.
(Nothing to fix in
Hello,
Am Samstag, 28. November 2015 schrieb John Johansen:
> On 11/28/2015 01:54 PM, Christian Boltz wrote:
> > Am Samstag, 28. November 2015 schrieb John Johansen:
...
> > So the parser will error out if a too big job number is given _and_
> > if there are enough profiles to load (otherwise the
aa-easyprof is used to generate profiles and the lack of an abstraction
file during profile generation should not be an error condition.
Leave the handling of the abstraction file for the parser. It will fail
if the file does not exist when the profile is being compiled.
https://launchpad.net/bug