Skip to content

Commit

Permalink
Merge pull request #69 from LanceMaverick/master
Browse files Browse the repository at this point in the history
docs
  • Loading branch information
LanceMaverick committed Jan 16, 2017
2 parents ea88a5c + 34a20fd commit 1cf82dc
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions skybeard/decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,13 @@ def debugonly(f_or_text=None, **kwargs):
the default message when not in debug mode.
e.g.
```Python
@debugonly("Skybeard is not in debug mode.")
async def foo(self, msg):
# This message will only be sent if skybeard is run in debug mode
await self.sender.sendMessage("You are in debug mode!")
```
.. code:: python
@debugonly("Skybeard is not in debug mode.")
async def foo(self, msg):
# This message will only be sent if skybeard is run in debug mode
await self.sender.sendMessage("You are in debug mode!")
"""

if isinstance(f_or_text, str):
Expand Down

0 comments on commit 1cf82dc

Please sign in to comment.