Skip to content

Commit

Permalink
fix issues from @chulrich on pr #509
Browse files Browse the repository at this point in the history
  • Loading branch information
Juarez Rudsatz authored and juarezr committed Aug 13, 2020
1 parent 01603c5 commit f5b7022
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion petl/io/xlsx.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def _load_or_create_workbook(filename, mode, sheet):

import openpyxl
wb = None
if mode != "overwrite" and (mode != "replace" or sheet is not None):
if not (mode == "overwrite" or (mode == "replace" and sheet is None)):
try:
source = read_source_from_arg(filename)
with source.open('rb') as source2:
Expand Down
1 change: 0 additions & 1 deletion petl/test/io/test_remotes.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

import sys
import os
import time
from importlib import import_module

from petl.compat import PY3
Expand Down

0 comments on commit f5b7022

Please sign in to comment.