Changeset 4266


Ignore:
Timestamp:
Apr 18, 2017, 4:32:06 PM (2 years ago)
Author:
Juanma
Message:

CLI: Replaced BeautifulSoup? with html2text

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lliurex-store/trunk/fuentes/lliurex-store-cli/usr/share/lliurex-store/lliurex-store-cli.py

    r4114 r4266  
    66import lliurexstore.storeManager as storeManager
    77import time
    8 from bs4 import BeautifulSoup
     8import gettext
     9import html2text
    910
    1011class color:
     
    4344                                                                print(u'Status'+': '+data['state'])
    4445                                                                print(u'Summary'+': '+data['summary'])
    45                                                                 desc=(BeautifulSoup(data['description'],"lxml")).get_text()
     46                                                                desc=(html2text.html2text(data['description'],"lxml"))
    4647#                                                               print(u'Description'+': '+data['description'])
    4748                                                                print(u'Description'+': '+desc)
Note: See TracChangeset for help on using the changeset viewer.