From 4a3d7473fdc8d7c090c93d04c7bc3defc83147d3 Mon Sep 17 00:00:00 2001 From: Devin Christensen Date: Tue, 25 Nov 2014 10:44:04 -0700 Subject: [PATCH] Fix syntax error --- database/postgresql/postgresql_user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database/postgresql/postgresql_user.py b/database/postgresql/postgresql_user.py index 0823bd7cd90..7839669cb1a 100644 --- a/database/postgresql/postgresql_user.py +++ b/database/postgresql/postgresql_user.py @@ -402,7 +402,7 @@ def parse_role_attrs(role_attr_flags): flag_set = frozenset(r.upper() for r in role_attr_flags.split(",")) else: flag_set = frozenset(role_attr_flags.upper()) - if not flag_set.is_subset(VALID_FLAGS): + if not flag_set.issubset(VALID_FLAGS): raise InvalidFlagsError('Invalid role_attr_flags specified: %s' % ' '.join(flag_set.difference(VALID_FLAGS))) o_flags = ' '.join(flag_set)