Skip to content

Commit

Permalink
Revert ":sparkle: Add keys() method to Header class to return a list …
Browse files Browse the repository at this point in the history
…of attr"

This reverts commit 7705a84.
  • Loading branch information
Ousret committed May 5, 2020
1 parent 27f4c8d commit f678876
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions kiss_headers/models.py
Expand Up @@ -438,11 +438,6 @@ def attrs(self) -> List[str]:
"""
return list(self._valued_attrs.keys()) + self._not_valued_attrs

def keys(self) -> List[str]:
"""Return a list of attribute name that have a value. Like "hello; attr=value; attr_b=value".
Should return you ["attr", "attr_b"]."""
return list(self._valued_attrs.keys())

def has(self, attr: str) -> bool:
"""
Safely check is current header has an attribute or adjective in it.
Expand Down

0 comments on commit f678876

Please sign in to comment.