Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #1626: feed-deprecate.diff

File feed-deprecate.diff, 512 bytes (added by Chris Arndt, 4 years ago)

Patch to add deprecation warning when importing turbogears.feed in TG 1.1

  • turbogears/feed/__init__.py

     
     1""""The 'turbogears.feed' package is deprecated in TurboGears >= 1.1. 
     2 
     3Please use the TurboFeeds extension <http://python.org/pypi/TurboFeeds> instead. 
     4""" 
     5 
     6import warnings 
     7 
     8warnings.warn(__doc__, DeprecationWarning) 
    19from turbogears.feed import feed 
    210FeedController = feed.FeedController