Skip to content

Commit 01ece5b

Browse files
committed
Added a warnings filter and a conversion of syslgog tag argument to 'str'.
- Legacy-Id: 16443
1 parent 96690f5 commit 01ece5b

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

ietf/settings.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# Copyright The IETF Trust 2007-2019, All Rights Reserved
22
# -*- coding: utf-8 -*-
33

4+
5+
from __future__ import absolute_import, print_function, unicode_literals
6+
47
# Django settings for ietf project.
58
# BASE_DIR and "settings_local" are from
69
# http://code.djangoproject.com/wiki/SplitSettings
@@ -24,6 +27,7 @@
2427
warnings.filterwarnings("ignore", message="defusedxml.lxml is no longer supported and will be removed in a future release.", module="tastypie")
2528
warnings.filterwarnings("ignore", message="Duplicate index '.*' defined on the table")
2629
# Warnings found under Python 3.7:
30+
warnings.filterwarnings("ignore", message="Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated")
2731
warnings.filterwarnings("ignore", message="'U' mode is deprecated", module="docutils.io")
2832
warnings.filterwarnings("ignore", message="'U' mode is deprecated", module="xml2rfc")
2933
warnings.filterwarnings("ignore", message="'U' mode is deprecated", module="site")
@@ -32,7 +36,7 @@
3236

3337
try:
3438
import syslog
35-
syslog.openlog("datatracker", syslog.LOG_PID, syslog.LOG_USER)
39+
syslog.openlog(str("datatracker"), syslog.LOG_PID, syslog.LOG_USER)
3640
except ImportError:
3741
pass
3842

0 commit comments

Comments
 (0)