~rohangarg/software-properties/fix-for-1307170

« back to all changes in this revision

Viewing changes to softwareproperties/SoftwareProperties.py

  • Committer: Brian Murray
  • Date: 2013-10-16 18:55:50 UTC
  • Revision ID: brian@canonical.com-20131016185550-a10hskzyt7v1dl92
Restore the removal of a line feed from a source (LP: #1239893)

Show diffs side-by-side

added added

removed removed

Lines of Context:
714
714
    """
715
715
    Add a source for the given line.
716
716
    """
717
 
    return self.add_source_from_shortcut(shortcut=shortcut_handler(line),
718
 
                                         enable_source_code=enable_source_code)
 
717
    return self.add_source_from_shortcut(
 
718
        shortcut=shortcut_handler(line.strip()),
 
719
        enable_source_code=enable_source_code)
719
720
 
720
721
  def add_source_from_shortcut(self, shortcut, enable_source_code=False):
721
722
    """