Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a05a503

Browse files
merge
2 parents a9d397b + 91f0359 commit a05a503

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

Lib/importlib/_bootstrap.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ def get_source(cls, fullname):
240240
@classmethod
241241
@_requires_builtin
242242
def is_package(cls, fullname):
243-
"""Return None as built-in module are never packages."""
243+
"""Return None as built-in modules are never packages."""
244244
return False
245245

246246

@@ -765,7 +765,7 @@ def _gcd_import(name, package=None, level=0):
765765
being made from, and the level adjustment.
766766
767767
This function represents the greatest common denominator of functionality
768-
between import_module and __import__. This includes settting __package__ if
768+
between import_module and __import__. This includes setting __package__ if
769769
the loader did not.
770770
771771
"""
@@ -855,7 +855,7 @@ def __import__(name, globals={}, locals={}, fromlist=[], level=0):
855855
module = _gcd_import(name)
856856
else:
857857
# __package__ is not guaranteed to be defined or could be set to None
858-
# to represent that it's proper value is unknown
858+
# to represent that its proper value is unknown
859859
package = globals.get('__package__')
860860
if package is None:
861861
package = globals['__name__']

Lib/test/test_zipfile.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -489,6 +489,7 @@ def test_close_on_exception(self):
489489
except zipfile.BadZipFile:
490490
self.assertTrue(zipfp2.fp is None, 'zipfp is not closed')
491491

492+
@skipUnless(zlib, "requires zlib")
492493
def test_unicode_filenames(self):
493494
# bug #10801
494495
fname = findfile('zip_cp437_header.zip')

Misc/ACKS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ Eric Beser
8080
Steven Bethard
8181
Stephen Bevan
8282
Ron Bickers
83+
Natalia B. Bidart
8384
Adrian von Bidder
8485
David Binger
8586
Dominic Binks

0 commit comments

Comments
 (0)