X Tutup
Skip to content

Commit 3640beb

Browse files
committed
Remove needless if branch in bpython.config.
1 parent 6a19119 commit 3640beb

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

bpython/config.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,7 @@ def migrate_rc(path):
160160
try:
161161
os.makedirs(os.path.expanduser('~/.bpython'))
162162
except OSError, e:
163-
if e.errno == errno.EEXIST:
164-
pass
165-
else:
163+
if e.errno != errno.EEXIST:
166164
raise
167165
f = open(os.path.expanduser('~/.bpython/config'), 'w')
168166
config.write(f)

0 commit comments

Comments
 (0)
X Tutup