Skip to content

Commit

Permalink
Merge 64079a1 into 2d536b3
Browse files Browse the repository at this point in the history
  • Loading branch information
yakky committed Aug 29, 2015
2 parents 2d536b3 + 64079a1 commit 56c1fd0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions menus/menu_pool.py
Expand Up @@ -160,11 +160,9 @@ def clear(self, site_id=None, language=None, all=False):
cache_keys.delete()

def register_menu(self, menu_cls):
import os
import inspect
import warnings
source_file = os.path.basename(inspect.stack()[1][1])
if source_file == 'menu.py':

if menu_cls.__module__.split('.')[-1] == 'menu':
warnings.warn('menu.py filename is deprecated, '
'and it will be removed in version 3.4; '
'please rename it to cms_menus.py', DeprecationWarning)
Expand Down

0 comments on commit 56c1fd0

Please sign in to comment.