← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1657454] Re: use safer method splitlines() to replace split('\n')

 

Reviewed:  https://review.openstack.org/421998
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=d2ec7d3d187815619170d054d7ff47744aceb2ac
Submitter: Jenkins
Branch:    master

commit d2ec7d3d187815619170d054d7ff47744aceb2ac
Author: liaozd <liao_zd@xxxxxxxxxxx>
Date:   Wed Jan 18 21:16:52 2017 +0800

    use safer method splitlines() to replace split('\n')
    
        user may copy/paste content from a file created in Windows,
        the line breaks are different in between win/unix/mac,
        `splitlines()` is better and safer than `split('\n')`
    
    Change-Id: I969b8b6b9de90f5eae6f2684623ec6db0014b05e
    Closes-Bug: 1657454


** Changed in: horizon
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1657454

Title:
  use safer method splitlines() to replace split('\n')

Status in OpenStack Dashboard (Horizon):
  Fix Released

Bug description:
  user may copy/paste content from a txt file created in Windows, line
  breaks are different, splitlines() method is better and safer than
  split('\n')

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1657454/+subscriptions


References