Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Sample code:

Production

----------

@authenticate

def foobar():

    ....

Development

-----------

#@authenticate ( Because developers are lazy, while testing)

def foobar():

    ....

And accidentally pushing the code, with authentication decorator (python) commented.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: