瀏覽代碼

Instead of replacing accented characters with an underscore when sanitizing file names in restricted mode, replace them with their non-accented equivalents fixes #9347

Adam Thalhammer 9 年之前
父節點
當前提交
31c4448f6e
共有 1 個文件被更改,包括 0 次插入1 次删除
  1. 0 1
      test/test_utils.py

+ 0 - 1
test/test_utils.py

@@ -158,7 +158,6 @@ class TestUtil(unittest.TestCase):
         self.assertEqual(sanitize_filename(
             'ÂÃÄÀÁÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ', restricted=True),
             'AAAAAAAECEEEEIIIIDNOOOOOOUUUUYPssaaaaaaaeceeeeiiiionoooooouuuuypy')
-        pass
 
     def test_sanitize_ids(self):
         self.assertEqual(sanitize_filename('_n_cd26wFpw', is_id=True), '_n_cd26wFpw')