Skip to content

Commit

Permalink
the console file
Browse files Browse the repository at this point in the history
  • Loading branch information
ElijahLawal-7 committed Nov 1, 2022
1 parent f7e0ec5 commit 647f92c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions console.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
from models.place import Place
from models.amenity import Amenity
from models.review import Review


def parse(arg):
curly_braces = re.search(r"\{(.*?)\}", arg)
brackets = re.search(r"\[(.*?)\]", arg)
Expand All @@ -28,6 +30,7 @@ def parse(arg):
retl.append(curly_braces.group())
return retl


class HBNBCommand(cmd.Cmd):
"""Defines the HolbertonBnB command interpreter.
Attributes:
Expand Down

0 comments on commit 647f92c

Please sign in to comment.