Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
cubes
awstats
Commits
6401affb0d06
Commit
56d69c55
authored
Nov 04, 2015
by
Julien Cristau
Browse files
Import _ from cubicweb
Silence cubicweb 3.22 deprecation warnings by not relying on _ being builtin.
parent
8de830381277
Changes
3
Hide whitespace changes
Inline
Side-by-side
utils.py
View file @
6401affb
...
...
@@ -21,6 +21,10 @@ from datetime import datetime, date
from
logilab.common.date
import
previous_month
,
first_day
,
date_range
,
last_day
from
logilab.common.shellutils
import
ProgressBar
try
:
from
cubicweb
import
_
except
ImportError
:
_
=
unicode
from
cubicweb.req
import
FindEntityError
from
cubicweb.web
import
NotFound
,
Redirect
...
...
views/actions.py
View file @
6401affb
...
...
@@ -14,6 +14,10 @@
# You should have received a copy of the GNU Lesser General Public License along
# with this program. If not, see <http://www.gnu.org/licenses/>.
try
:
from
cubicweb
import
_
except
ImportError
:
_
=
unicode
from
cubicweb.web
import
action
from
cubicweb.predicates
import
match_user_groups
...
...
views/startup.py
View file @
6401affb
...
...
@@ -26,6 +26,10 @@ import urllib
from
logilab.mtconverter
import
xml_escape
from
logilab.common.textutils
import
BYTE_UNITS
try
:
from
cubicweb
import
_
except
ImportError
:
_
=
unicode
from
cubicweb.view
import
StartupView
from
cubicweb.web.views
import
forms
from
cubicweb.web.formfields
import
StringField
,
DateField
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment