From e3164b814729478960621fa3afaebbaf2be72190 Mon Sep 17 00:00:00 2001 From: gauthiier Date: Wed, 20 Aug 2014 19:14:40 +0200 Subject: [PATCH] renaming functions inputs --- parse/parse.py | 7 ++++--- rrref.sh | 3 +-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/parse/parse.py b/parse/parse.py index e878eaf..6ebdae5 100755 --- a/parse/parse.py +++ b/parse/parse.py @@ -7,11 +7,12 @@ markups = {'QUOTES' : ('PAGE', 'pp', 'tags', 'quote', 'fpc'), 'NOTES' : ('NOTE', output = {'QUOTES' : [], 'NOTES' : []} -def error(cargo): +def error(c): + fp, l = c # Don't want to get here! Unidentifiable line - sys.stderr.write('Unidentifiable line:\n'+ line) + sys.stderr.write('Unidentifiable line:\n'+ l) -def eof(cargo): +def eof(c): # Normal termination -- Cleanup code might go here. sys.stdout.write('Processing Successful\n') fpindx = open('.indx','wb') diff --git a/rrref.sh b/rrref.sh index 764b9f3..f48915a 100755 --- a/rrref.sh +++ b/rrref.sh @@ -7,10 +7,9 @@ if [[ -e "$WHERE/CONFIG" ]]; then source $WHERE/CONFIG fi +OUT=txt # defaults to txt output OPTIND=1 #reset getopts -OUT=txt # default output - while getopts :b:r:o: opts; do case $opts in b)