()
| 410 | print ('\n You are now subscribed to: ' + address + '\n') |
| 411 | |
| 412 | def unsubscribe(): |
| 413 | global usrPrompt |
| 414 | |
| 415 | while True: |
| 416 | address = userInput("What address would you like to unsubscribe from?") |
| 417 | |
| 418 | if (address == "c"): |
| 419 | usrPrompt = 1 |
| 420 | print ' ' |
| 421 | main() |
| 422 | elif (validAddress(address)== False): |
| 423 | print '\n Invalid. "c" to cancel. Please try again.\n' |
| 424 | else: |
| 425 | break |
| 426 | |
| 427 | |
| 428 | userInput("Are you sure, (Y)es or (N)o?").lower() # #uInput = |
| 429 | |
| 430 | api.deleteSubscription(address) |
| 431 | print ('\n You are now unsubscribed from: ' + address + '\n') |
| 432 | |
| 433 | def listSubscriptions(): |
| 434 | global usrPrompt |
no test coverage detected