diff options
author | Ian Lee <IanLee1521@gmail.com> | 2015-02-07 12:25:16 -0800 |
---|---|---|
committer | Ian Lee <IanLee1521@gmail.com> | 2015-02-07 12:25:16 -0800 |
commit | 6086f61c90c38b5ceb0bf1f473a382fb36f664b1 (patch) | |
tree | 7d9b2d1a61272e9424d3518c4e374193d75e050e | |
parent | 30b6be3b06775b5a9229e3a899a9f673a12a595f (diff) | |
download | pep8-6086f61c90c38b5ceb0bf1f473a382fb36f664b1.tar.gz |
Fix undefined variable issue; #377
-rw-r--r-- | CHANGES.txt | 3 | ||||
-rwxr-xr-x | pep8.py | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/CHANGES.txt b/CHANGES.txt index 6482343..76cf1c8 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -5,6 +5,9 @@ Changelog 1.6.x (unreleased) ------------------ +Bugs: + +* Exception thrown due to unassigned ``local_dir`` variable. (Issue #377) 1.6.0 (2015-02-06) ------------------ @@ -1938,6 +1938,8 @@ def read_config(options, args, arglist, parser): cli_conf = options.config + local_dir = os.curdir + if cli_conf and os.path.isfile(cli_conf): if options.verbose: print('cli configuration: %s' % cli_conf) @@ -1948,7 +1950,6 @@ def read_config(options, args, arglist, parser): print('user configuration: %s' % USER_CONFIG) config.read(USER_CONFIG) - local_dir = os.curdir parent = tail = args and os.path.abspath(os.path.commonprefix(args)) while tail: if config.read(os.path.join(parent, fn) for fn in PROJECT_CONFIG): |