Skip to content

Commit 6086f61

Browse files
committed
Fix undefined variable issue; #377
1 parent 30b6be3 commit 6086f61

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGES.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ Changelog
55
1.6.x (unreleased)
66
------------------
77

8+
Bugs:
9+
10+
* Exception thrown due to unassigned ``local_dir`` variable. (Issue #377)
811

912
1.6.0 (2015-02-06)
1013
------------------

pep8.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1938,6 +1938,8 @@ def read_config(options, args, arglist, parser):
19381938

19391939
cli_conf = options.config
19401940

1941+
local_dir = os.curdir
1942+
19411943
if cli_conf and os.path.isfile(cli_conf):
19421944
if options.verbose:
19431945
print('cli configuration: %s' % cli_conf)
@@ -1948,7 +1950,6 @@ def read_config(options, args, arglist, parser):
19481950
print('user configuration: %s' % USER_CONFIG)
19491951
config.read(USER_CONFIG)
19501952

1951-
local_dir = os.curdir
19521953
parent = tail = args and os.path.abspath(os.path.commonprefix(args))
19531954
while tail:
19541955
if config.read(os.path.join(parent, fn) for fn in PROJECT_CONFIG):

0 commit comments

Comments
 (0)