diff --git a/src/morevna.py b/src/morevna.py --- a/src/morevna.py +++ b/src/morevna.py @@ -3,7 +3,7 @@ import os.path import logging as log from argparse import ArgumentParser -from util import spawnDaemon, splitHost +from util import spawn_daemon, split_host import config as conf import stats from hashtree import HashTree @@ -11,42 +11,42 @@ from client import Client, Connection as from server import Miniserver -def _checkFile(f): +def _check_file(f): if not os.path.isfile(f): print("invalid file specified:", f, file=sys.stderr) sys.exit(1) -def buildTree(args): - _checkFile(args.datafile) +def build_tree(args): + _check_file(args.datafile) if os.path.isfile(args.treefile): - treeMod = os.stat(args.treefile).st_mtime - dataMod = os.stat(args.datafile).st_mtime - if dataMod