HUE-8737 [useradmin] Fix py3 unicode in ensure_home_directory

Review Request #14278 - Created Sept. 10, 2019 and updated

Ying Chen
hue
master
HUE-8737
hue
jgauthier, johan, romain, weixia
commit 96aa84ddcd4286f7a4439060e72022426fcab11e (HEAD -> fix_ensure_home_directory)
Author: Ying Chen <yingchen@cloudera.com>
Date:   Tue Sep 10 10:56:22 2019 -0700

    HUE-8737 [useradmin] Fix py3 unicode in ensure_home_directory

:100644 100644 de9e62adac... 3b5ebd1895... M    apps/useradmin/src/useradmin/views.py


  • 0
  • 0
  • 0
  • 1
  • 1
Description From Last Updated
  1. 
      
  2. apps/useradmin/src/useradmin/views.py (Diff revision 1)
     
     

    In Python 2 we are changing the logic?

    1. It was unicode originally, but converted to 'str' by futurize auto-convertion tool. I took out "from builtins import str", but didn't correct this one also.
      The builtins.str type is 'newstr', and put it here will cause problme.
      
      One way to fix this is keep it as origin unicode in py2, but in py3, let unicode = str, since unicode is undefined and str are unicode.
  3. 
      
  1. Ship It!
  2. 
      
Loading...