Changeset 1403


Ignore:
Timestamp:
Jun 28, 2006 2:49:15 AM (12 years ago)
Author:
bcsaller
Message:

mask stripogram dep.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ots/trunk/OTS/examples/urlsum.py

    r1402 r1403  
    33import sys, os 
    44import urllib 
    5 import stripogram 
    65from optparse import OptionParser 
    76import webbrowser 
     
    1514        def detect(data): 
    1615            return {'encoding' : sys.getdefaultencoding()} 
     16 
     17try: 
     18    import stripogram 
     19except ImportError: 
     20    class stripogram: 
     21        @staticmethod 
     22        def html2text(data): 
     23            return data 
    1724         
    1825 
Note: See TracChangeset for help on using the changeset viewer.