Commit a05a5033 authored by Ronald Oussoren's avatar Ronald Oussoren

merge

parents a9d397bb 91f0359e
...@@ -240,7 +240,7 @@ class BuiltinImporter: ...@@ -240,7 +240,7 @@ class BuiltinImporter:
@classmethod @classmethod
@_requires_builtin @_requires_builtin
def is_package(cls, fullname): def is_package(cls, fullname):
"""Return None as built-in module are never packages.""" """Return None as built-in modules are never packages."""
return False return False
...@@ -765,7 +765,7 @@ def _gcd_import(name, package=None, level=0): ...@@ -765,7 +765,7 @@ def _gcd_import(name, package=None, level=0):
being made from, and the level adjustment. being made from, and the level adjustment.
This function represents the greatest common denominator of functionality This function represents the greatest common denominator of functionality
between import_module and __import__. This includes settting __package__ if between import_module and __import__. This includes setting __package__ if
the loader did not. the loader did not.
""" """
...@@ -855,7 +855,7 @@ def __import__(name, globals={}, locals={}, fromlist=[], level=0): ...@@ -855,7 +855,7 @@ def __import__(name, globals={}, locals={}, fromlist=[], level=0):
module = _gcd_import(name) module = _gcd_import(name)
else: else:
# __package__ is not guaranteed to be defined or could be set to None # __package__ is not guaranteed to be defined or could be set to None
# to represent that it's proper value is unknown # to represent that its proper value is unknown
package = globals.get('__package__') package = globals.get('__package__')
if package is None: if package is None:
package = globals['__name__'] package = globals['__name__']
......
...@@ -489,6 +489,7 @@ class TestsWithSourceFile(unittest.TestCase): ...@@ -489,6 +489,7 @@ class TestsWithSourceFile(unittest.TestCase):
except zipfile.BadZipFile: except zipfile.BadZipFile:
self.assertTrue(zipfp2.fp is None, 'zipfp is not closed') self.assertTrue(zipfp2.fp is None, 'zipfp is not closed')
@skipUnless(zlib, "requires zlib")
def test_unicode_filenames(self): def test_unicode_filenames(self):
# bug #10801 # bug #10801
fname = findfile('zip_cp437_header.zip') fname = findfile('zip_cp437_header.zip')
......
...@@ -80,6 +80,7 @@ Eric Beser ...@@ -80,6 +80,7 @@ Eric Beser
Steven Bethard Steven Bethard
Stephen Bevan Stephen Bevan
Ron Bickers Ron Bickers
Natalia B. Bidart
Adrian von Bidder Adrian von Bidder
David Binger David Binger
Dominic Binks Dominic Binks
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment