Skip to content
Browse files

Made password optional

  • Loading branch information...
1 parent b85494c commit 8c78700a5e792c7ef445278be9b7fb363fdf9160 @michaelfairley committed Sep 11, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 mincemeat.py
View
4 mincemeat.py
@@ -190,7 +190,7 @@ def __init__(self):
self.datasource = None
self.password = None
- def run_server(self, password, port=DEFAULT_PORT):
+ def run_server(self, password="", port=DEFAULT_PORT):
self.password = password
self.create_socket(socket.AF_INET, socket.SOCK_STREAM)
self.bind(("", port))
@@ -342,7 +342,7 @@ def reduce_done(self, data):
def run_client():
parser = optparse.OptionParser(usage="%prog [options]", version="%%prog %s"%VERSION)
- parser.add_option("-p", "--password", dest="password", help="password")
+ parser.add_option("-p", "--password", dest="password", default="", help="password")
parser.add_option("-P", "--port", dest="port", type="int", default=DEFAULT_PORT, help="port")
#TODO: add -v option for verbose

0 comments on commit 8c78700

Please sign in to comment.
Something went wrong with that request. Please try again.