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 vstinner
Recipients BreamoreBoy, brian.curtin, ezio.melotti, jcea, mandel, serhiy.storchaka, terry.reedy, vstinner
Date 2014-07-22.10:12:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1406023928.05.0.0944433353847.issue15275@psf.upfronthosting.co.za>
In-reply-to
Content
I like ntpath_cleanup.diff, I don't think that it makes the code worse.

FYI os.fsencode() accepts str too, you can simplify:

     if isinstance(path, bytes):
-        userhome = userhome.encode(sys.getfilesystemencoding())
+        userhome = os.fsencode(userhome)

to


+    userhome = os.fsencode(userhome)
History
Date User Action Args
2014-07-22 10:12:08vstinnersetrecipients: + vstinner, terry.reedy, jcea, ezio.melotti, brian.curtin, BreamoreBoy, mandel, serhiy.storchaka
2014-07-22 10:12:08vstinnersetmessageid: <1406023928.05.0.0944433353847.issue15275@psf.upfronthosting.co.za>
2014-07-22 10:12:08vstinnerlinkissue15275 messages
2014-07-22 10:12:07vstinnercreate