Skip to content
This repository has been archived by the owner on May 9, 2021. It is now read-only.

Commit

Permalink
Made password optional
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfairley committed Sep 11, 2010
1 parent b85494c commit 8c78700
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mincemeat.py
Expand Up @@ -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))
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 8c78700

Please sign in to comment.