Skip to content

Commit 3d8acf4

Browse files
committed
fix iglob() encoding/case handling
1 parent cb3569f commit 3d8acf4

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎plotdevice/util/__init__.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def files(path="*", case=True):
8383
# path.encode('utf-8')
8484
path = os.path.expanduser(path)
8585

86-
return list(iglob(path.decode('utf-8'), case=case))
86+
return list(iglob(path, case=case))
8787

8888
def autotext(sourceFile):
8989
from plotdevice.util.kgp import KantGenerator

‎plotdevice/util/iglob.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def iglob(pathname, case=True):
2020
return
2121
dirname, basename = os.path.split(pathname)
2222
if not dirname:
23-
for name in glob1(os.curdir, basename):
23+
for name in glob1(os.curdir, basename, case):
2424
yield name
2525
return
2626
# `os.path.split()` returns the argument itself as a dirname if it is a

0 commit comments

Comments
 (0)