mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
Rip out all the u"..." literals and calls to unicode().
This commit is contained in:
parent
572dbf8f13
commit
ef87d6ed94
200 changed files with 18074 additions and 18074 deletions
|
|
@ -49,8 +49,8 @@ def iglob(pathname):
|
|||
def glob1(dirname, pattern):
|
||||
if not dirname:
|
||||
dirname = os.curdir
|
||||
if isinstance(pattern, unicode) and not isinstance(dirname, unicode):
|
||||
dirname = unicode(dirname, sys.getfilesystemencoding() or
|
||||
if isinstance(pattern, str) and not isinstance(dirname, str):
|
||||
dirname = str(dirname, sys.getfilesystemencoding() or
|
||||
sys.getdefaultencoding())
|
||||
try:
|
||||
names = os.listdir(dirname)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue