Skip to content

Commit

Permalink
Remove some unused imports; pep8 long line
Browse files Browse the repository at this point in the history
  • Loading branch information
tiberiuichim committed Dec 22, 2016
1 parent cf895a9 commit 2b444a2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
18 changes: 9 additions & 9 deletions kotti/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
import cgi
import re

try:
# PY2
from urllib import unquote
from urlparse import urlparse
from urlparse import urlunparse
except ImportError:
from urllib.parse import unquote
from urllib.parse import urlparse
from urllib.parse import urlunparse
# try:
# # PY2
# from urllib import unquote
# from urlparse import urlparse
# from urlparse import urlunparse
# except ImportError:
# from urllib.parse import unquote
# from urllib.parse import urlparse
# from urllib.parse import urlunparse


from docopt import docopt
Expand Down
10 changes: 5 additions & 5 deletions kotti/views/edit/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,12 +224,12 @@ def set_visibility(self, show):
child.in_navigation = show
mapping = dict(title=child.title)
if show:
msg = _(u'${title} is now visible in the navigation.',
mapping=mapping)
mg = _(u'${title} is now visible in the navigation.',
mapping=mapping)
else:
msg = _(u'${title} is no longer visible in the navigation.',
mapping=mapping)
self.flash(msg, 'success')
mg = _(u'${title} is no longer visible in the navigation.',
mapping=mapping)
self.flash(mg, 'success')
if not self.request.is_xhr:
return self.back()

Expand Down

0 comments on commit 2b444a2

Please sign in to comment.