)]}'
{"oslo_policy/sphinxext.py":[{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"3a684c867041802befc341eb9acdd56d48ac488b","unresolved":false,"context_lines":[{"line_number":62,"context_line":"            yield _indent(_indent(\u0027- **{}** ``{}``\u0027.format("},{"line_number":63,"context_line":"                operation[\u0027method\u0027], operation[\u0027path\u0027])))"},{"line_number":64,"context_line":""},{"line_number":65,"context_line":"    if hasattr(rule, \u0027scope_types\u0027) and rule.scope_types is not None:"},{"line_number":66,"context_line":"        yield _indent(\u0027:Scope Types:\u0027)"},{"line_number":67,"context_line":"        for scope_type in rule.scope_types:"},{"line_number":68,"context_line":"            yield _indent(_indent(\u0027- **{}**\u0027.format(scope_type)))"}],"source_content_type":"text/x-python","patch_set":1,"id":"5f7c97a3_333ef68a","line":65,"range":{"start_line":65,"start_character":7,"end_line":65,"end_character":36},"updated":"2018-06-01 19:55:18.000000000","message":"This might not be needed since RuleDefault objects have scope_types, but I kept the convention from above. This could be simplified to:\n\n  if rule.scope_types:\n\nor \n\n  if rule.scope_types is not None:\n\nbut I\u0027m curious if other have an opinion.","commit_id":"eb1546fdfc157ebce0d52cbee54e2898d13de245"},{"author":{"_account_id":2472,"name":"Doug Hellmann","email":"dhellmann@redhat.com","username":"doug-hellmann"},"change_message_id":"b8cd598f093870a38ef1231b62898acf94dee26b","unresolved":false,"context_lines":[{"line_number":62,"context_line":"            yield _indent(_indent(\u0027- **{}** ``{}``\u0027.format("},{"line_number":63,"context_line":"                operation[\u0027method\u0027], operation[\u0027path\u0027])))"},{"line_number":64,"context_line":""},{"line_number":65,"context_line":"    if hasattr(rule, \u0027scope_types\u0027) and rule.scope_types is not None:"},{"line_number":66,"context_line":"        yield _indent(\u0027:Scope Types:\u0027)"},{"line_number":67,"context_line":"        for scope_type in rule.scope_types:"},{"line_number":68,"context_line":"            yield _indent(_indent(\u0027- **{}**\u0027.format(scope_type)))"}],"source_content_type":"text/x-python","patch_set":1,"id":"5f7c97a3_d378e2c1","line":65,"range":{"start_line":65,"start_character":7,"end_line":65,"end_character":36},"in_reply_to":"5f7c97a3_333ef68a","updated":"2018-06-01 20:31:17.000000000","message":"You could do\n\n  if getattr(rule, \u0027scope_types\u0027, None):\n\nAlthough if all values of rule are always going to have *some* scope_types value that may also be overkill.","commit_id":"eb1546fdfc157ebce0d52cbee54e2898d13de245"}]}
