This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author doko
Recipients barry, brett.cannon, doko, piotr, r.david.murray
Date 2014-12-01.16:06:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1417449965.26.0.966861598422.issue22966@psf.upfronthosting.co.za>
In-reply-to
Content
proposed patch:

diff -r 8dacb1a21793 Lib/importlib/_bootstrap.py
--- a/Lib/importlib/_bootstrap.py	Fri Nov 28 13:15:41 2014 +0100
+++ b/Lib/importlib/_bootstrap.py	Mon Dec 01 17:05:00 2014 +0100
@@ -453,7 +453,7 @@
     else:
         suffixes = OPTIMIZED_BYTECODE_SUFFIXES
     head, tail = _path_split(path)
-    base_filename, sep, _ = tail.partition('.')
+    base_filename, sep, _ = tail.rpartition('.')
     tag = sys.implementation.cache_tag
     if tag is None:
         raise NotImplementedError('sys.implementation.cache_tag is None')
History
Date User Action Args
2014-12-01 16:06:05dokosetrecipients: + doko, barry, brett.cannon, r.david.murray, piotr
2014-12-01 16:06:05dokosetmessageid: <1417449965.26.0.966861598422.issue22966@psf.upfronthosting.co.za>
2014-12-01 16:06:05dokolinkissue22966 messages
2014-12-01 16:06:04dokocreate