summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorVladimír Vondruš <mosra@centrum.cz>2015-09-05 17:46:34 +0100
committerJose Fonseca <jfonseca@vmware.com>2015-09-05 17:49:33 +0100
commitc6cace53426b5be7e56c0fd202118009689bc707 (patch)
tree684f359a696e11d212fb89fe49b6821a6b6ac142 /scripts
parent7ad1d34c97cb0d2f07a381d7664f1ba0f1be410b (diff)
cli/diff: Fix undefined variable error with sdiff.
Fixes #386.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/tracediff.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/tracediff.py b/scripts/tracediff.py
index 4480c05a..f111322a 100755
--- a/scripts/tracediff.py
+++ b/scripts/tracediff.py
@@ -128,12 +128,12 @@ class ExternalDiffer(Differ):
'--new-line-format=+ %l\n',
]
elif tool == 'sdiff':
- if width is None:
+ if options.width is None:
import curses
curses.setupterm()
- width = curses.tigetnum('cols')
+ options.width = curses.tigetnum('cols')
self.diff_args += [
- '--width=%u' % width,
+ '--width=%u' % options.width,
'--speed-large-files',
]
elif tool == 'wdiff':