From c60c7b8c36c1eb6d66745ea7afeee5a10e652444 Mon Sep 17 00:00:00 2001 From: Brandon Myers Date: Thu, 4 Jan 2018 17:15:35 -0600 Subject: [PATCH] Remove extra line after copywrite date --- alerts/amo_failed_logins.py | 1 - alerts/auditd_sftp.py | 1 - alerts/bruteforce_ssh.py | 1 - alerts/bugzilla_auth_bruteforce.py | 1 - alerts/cloudtrail_deadman.py | 1 - alerts/cloudtrail_logging_disabled.py | 1 - alerts/confluence_shell.py | 1 - alerts/correlated_alerts.py | 1 - alerts/duo_authfail.py | 1 - alerts/fxa_alerts.py | 1 - alerts/generic_alert_loader.py | 1 - alerts/geomodel.py | 1 - alerts/host_scanner_alerts.py | 1 - alerts/http_auth_bruteforce.py | 1 - alerts/http_errors.py | 1 - alerts/ldap_add.py | 1 - alerts/ldap_delete.py | 1 - alerts/ldap_group.py | 1 - alerts/ldap_lockout.py | 1 - alerts/lib/alerttask.py | 1 - alerts/lib/config.py | 1 - alerts/multiple_intel_hits.py | 1 - alerts/open_port_violation.py | 1 - alerts/plugins/dashboard_geomodel.py | 1 - alerts/plugins/pagerDutyTriggerEvent.py | 1 - alerts/proxy_drop.py | 1 - alerts/sqs_queues_deadman.py | 1 - alerts/ssh_access_signreleng.py | 1 - alerts/ssh_bruteforce_bro.py | 1 - alerts/ssh_ioc.py | 1 - alerts/ssh_key.py | 1 - alerts/ssh_lateral.py | 1 - alerts/ssl_blacklist_hit.py | 1 - alerts/unauth_ssh.py | 1 - alerts/vpn_duo_auth_failures.py | 1 - benchmarking/workers/json2Mozdef.py | 1 - bot/modules/zilla.py | 1 - bot/mozdefbot.py | 1 - bot/mozdefbot_slack.py | 1 - cron/backupSnapshot.py | 1 - cron/collectAttackers.py | 1 - cron/collectSSHFingerprints.py | 1 - cron/correlateUserMacAddress.py | 1 - cron/createIPBlockList.py | 1 - cron/eventStats.py | 1 - cron/google2mozdef.py | 1 - cron/healthAndStatus.py | 1 - cron/healthToMongo.py | 1 - cron/import_threat_exchange.py | 1 - cron/okta2mozdef.py | 1 - cron/pruneIndexes.py | 1 - cron/rotateIndexes.py | 1 - cron/setupIndexTemplates.py | 3 +-- cron/syncAlertsToMongo.py | 1 - cron/update_generic_alerts.py | 1 - cron/update_geolite_db.py | 1 - cron/update_ip_list.py | 1 - cron/verify_event_fields.py | 1 - docker/compose/mozdef_alerts/files/config.py | 1 - docker/conf/config.py | 1 - docker/conf/initial_setup.py | 1 - examples/demo/sampleData2MozDef.py | 1 - examples/es-docs/inject.py | 1 - examples/plugins/dummy_id.py | 1 - lib/query_models/aggregated_results.py | 1 - lib/query_models/aggregation.py | 1 - lib/query_models/boolean_match.py | 1 - lib/query_models/exists_match.py | 1 - lib/query_models/less_than_match.py | 1 - lib/query_models/missing_match.py | 1 - lib/query_models/phrase_match.py | 1 - lib/query_models/query_string_match.py | 1 - lib/query_models/range_match.py | 1 - lib/query_models/search_query.py | 1 - lib/query_models/simple_results.py | 1 - lib/query_models/term_match.py | 1 - lib/query_models/terms_match.py | 1 - lib/query_models/wildcard_match.py | 1 - lib/utilities/dot_dict.py | 1 - lib/utilities/logger.py | 1 - loginput/index.py | 1 - mq/esworker_cloudtrail.py | 1 - mq/esworker_eventtask.py | 1 - mq/esworker_papertrail.py | 1 - mq/esworker_sns_sqs.py | 1 - mq/esworker_sqs.py | 1 - mq/lib/plugins.py | 1 - mq/plugins/auditdFixup.py | 3 +-- mq/plugins/broFixup.py | 1 - mq/plugins/complianceitems.py | 1 - mq/plugins/customDocType.py | 3 +-- mq/plugins/dropMessage.py | 1 - mq/plugins/filterlog.py | 1 - mq/plugins/fluentdSqsFixup.py | 1 - mq/plugins/fxaFixup.py | 1 - mq/plugins/geoip.py | 1 - mq/plugins/googleFixup.py | 3 +-- mq/plugins/ipFixup.py | 1 - mq/plugins/mozilla_location.py | 1 - mq/plugins/nagioshostname.py | 7 +++---- mq/plugins/netflowFixup.py | 9 ++++----- mq/plugins/observium.py | 1 - mq/plugins/parse_sshd.py | 1 - mq/plugins/parse_su.py | 1 - mq/plugins/rt_flow.py | 3 +-- mq/plugins/snmptt.py | 3 +-- mq/plugins/sshdFindIP.py | 3 +-- mq/plugins/ttl_auditd.py | 1 - mq/plugins/vidyoCallID.py | 7 +++---- mq/plugins/vulnerability.py | 1 - rest/index.py | 1 - rest/plugins/banhammer.py | 1 - rest/plugins/cymon.py | 1 - rest/plugins/facebook_threatexchange.py | 1 - rest/plugins/vpc_blackhole.py | 1 - tests/alerts/alert_test_suite.py | 1 - tests/alerts/test_bruteforce_ssh.py | 1 - tests/alerts/test_duo_authfail.py | 1 - tests/alerts/test_geomodel.py | 1 - tests/alerts/test_open_port_violation.py | 1 - tests/alerts/test_session_opened_sensitive_user.py | 1 - tests/alerts/test_sqs_queues_deadman.py | 1 - tests/lib/query_models/query_test_suite.py | 1 - tests/lib/query_models/test_aggregation.py | 1 - tests/lib/test_elasticsearch_client.py | 1 - tests/lib/test_plugins/plugin1.py | 1 - tests/lib/test_plugins/plugin2.py | 1 - tests/lib/test_plugins/plugin3.py | 1 - tests/lib/test_plugins/plugin4.py | 1 - tests/lib/test_plugins/plugin5.py | 1 - tests/lib/test_plugins/plugin6.py | 1 - tests/lib/test_plugins/plugin7.py | 1 - tests/lib/test_plugins/plugin8.py | 1 - tests/lib/utilities/test_dot_dict.py | 1 - tests/mq/plugins/test_filterlog.py | 1 - tests/mq/plugins/test_parse_sshd.py | 1 - tests/mq/plugins/test_parse_su.py | 1 - tests/mq/test_esworker_eventtask.py | 1 - tests/mq/test_esworker_sns_sqs.py | 1 - tests/rest/test_rest_index.py | 1 - 140 files changed, 17 insertions(+), 157 deletions(-) diff --git a/alerts/amo_failed_logins.py b/alerts/amo_failed_logins.py index 3dec9dd7..98022485 100644 --- a/alerts/amo_failed_logins.py +++ b/alerts/amo_failed_logins.py @@ -4,7 +4,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2014 Mozilla Corporation -# from lib.alerttask import AlertTask from query_models import SearchQuery, TermMatch, ExistsMatch, PhraseMatch diff --git a/alerts/auditd_sftp.py b/alerts/auditd_sftp.py index 252e75f3..9873ef0e 100644 --- a/alerts/auditd_sftp.py +++ b/alerts/auditd_sftp.py @@ -4,7 +4,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2014 Mozilla Corporation -# from lib.alerttask import AlertTask from query_models import SearchQuery, TermMatch, PhraseMatch diff --git a/alerts/bruteforce_ssh.py b/alerts/bruteforce_ssh.py index 05eb899d..ecf8c38c 100644 --- a/alerts/bruteforce_ssh.py +++ b/alerts/bruteforce_ssh.py @@ -4,7 +4,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2017 Mozilla Corporation -# from lib.alerttask import AlertTask from query_models import SearchQuery, TermMatch, PhraseMatch, TermsMatch diff --git a/alerts/bugzilla_auth_bruteforce.py b/alerts/bugzilla_auth_bruteforce.py index 750adc9e..058b1cf7 100644 --- a/alerts/bugzilla_auth_bruteforce.py +++ b/alerts/bugzilla_auth_bruteforce.py @@ -4,7 +4,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2017 Mozilla Corporation -# from lib.alerttask import AlertTask from query_models import SearchQuery, TermMatch, ExistsMatch, PhraseMatch diff --git a/alerts/cloudtrail_deadman.py b/alerts/cloudtrail_deadman.py index 4a10eafe..ab45b4f7 100644 --- a/alerts/cloudtrail_deadman.py +++ b/alerts/cloudtrail_deadman.py @@ -4,7 +4,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2017 Mozilla Corporation -# from lib.alerttask import AlertTask diff --git a/alerts/cloudtrail_logging_disabled.py b/alerts/cloudtrail_logging_disabled.py index 8d9b2f63..c9f21bbb 100644 --- a/alerts/cloudtrail_logging_disabled.py +++ b/alerts/cloudtrail_logging_disabled.py @@ -4,7 +4,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2017 Mozilla Corporation -# from lib.alerttask import AlertTask from query_models import SearchQuery, TermMatch diff --git a/alerts/confluence_shell.py b/alerts/confluence_shell.py index 2a9bf709..9e796797 100644 --- a/alerts/confluence_shell.py +++ b/alerts/confluence_shell.py @@ -4,7 +4,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2014 Mozilla Corporation -# from lib.alerttask import AlertTask from query_models import SearchQuery, TermMatch, QueryStringMatch diff --git a/alerts/correlated_alerts.py b/alerts/correlated_alerts.py index 32ac9d5b..c55fffb1 100644 --- a/alerts/correlated_alerts.py +++ b/alerts/correlated_alerts.py @@ -4,7 +4,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2017 Mozilla Corporation -# from lib.alerttask import AlertTask from query_models import SearchQuery, TermMatch, ExistsMatch, PhraseMatch diff --git a/alerts/duo_authfail.py b/alerts/duo_authfail.py index 88d46570..736bf2db 100644 --- a/alerts/duo_authfail.py +++ b/alerts/duo_authfail.py @@ -2,7 +2,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2017 Mozilla Corporation -# from lib.alerttask import AlertTask from query_models import SearchQuery, TermMatch, ExistsMatch, PhraseMatch diff --git a/alerts/fxa_alerts.py b/alerts/fxa_alerts.py index e9aeaa12..bd675f8a 100644 --- a/alerts/fxa_alerts.py +++ b/alerts/fxa_alerts.py @@ -4,7 +4,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2017 Mozilla Corporation -# from lib.alerttask import AlertTask from query_models import SearchQuery, TermMatch, PhraseMatch, WildcardMatch diff --git a/alerts/generic_alert_loader.py b/alerts/generic_alert_loader.py index 688d8313..6a60dfc7 100644 --- a/alerts/generic_alert_loader.py +++ b/alerts/generic_alert_loader.py @@ -4,7 +4,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2017 Mozilla Corporation -# # TODO: Dont use query_models, nicer fixes for AlertTask diff --git a/alerts/geomodel.py b/alerts/geomodel.py index 913269ea..9d397238 100644 --- a/alerts/geomodel.py +++ b/alerts/geomodel.py @@ -4,7 +4,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2015 Mozilla Corporation -# from lib.alerttask import AlertTask from query_models import SearchQuery, TermMatch diff --git a/alerts/host_scanner_alerts.py b/alerts/host_scanner_alerts.py index 453e22bc..731aea54 100644 --- a/alerts/host_scanner_alerts.py +++ b/alerts/host_scanner_alerts.py @@ -4,7 +4,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2014 Mozilla Corporation -# from lib.alerttask import AlertTask from query_models import SearchQuery, TermMatch, ExistsMatch, PhraseMatch diff --git a/alerts/http_auth_bruteforce.py b/alerts/http_auth_bruteforce.py index bcc04050..51dba973 100644 --- a/alerts/http_auth_bruteforce.py +++ b/alerts/http_auth_bruteforce.py @@ -4,7 +4,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2017 Mozilla Corporation -# from lib.alerttask import AlertTask from query_models import SearchQuery, TermMatch, ExistsMatch, PhraseMatch diff --git a/alerts/http_errors.py b/alerts/http_errors.py index cf45025a..62327904 100644 --- a/alerts/http_errors.py +++ b/alerts/http_errors.py @@ -4,7 +4,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2017 Mozilla Corporation -# from lib.alerttask import AlertTask from query_models import SearchQuery, TermMatch, ExistsMatch, PhraseMatch diff --git a/alerts/ldap_add.py b/alerts/ldap_add.py index 1d1dd042..5f5cdde5 100644 --- a/alerts/ldap_add.py +++ b/alerts/ldap_add.py @@ -4,7 +4,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2014 Mozilla Corporation -# from lib.alerttask import AlertTask from query_models import SearchQuery, TermMatch diff --git a/alerts/ldap_delete.py b/alerts/ldap_delete.py index 54d64e01..5dd1a6b7 100644 --- a/alerts/ldap_delete.py +++ b/alerts/ldap_delete.py @@ -4,7 +4,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2014 Mozilla Corporation -# from lib.alerttask import AlertTask from query_models import SearchQuery, TermMatch diff --git a/alerts/ldap_group.py b/alerts/ldap_group.py index 0678a6a3..6e2819a3 100644 --- a/alerts/ldap_group.py +++ b/alerts/ldap_group.py @@ -4,7 +4,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2014 Mozilla Corporation -# from lib.alerttask import AlertTask from query_models import SearchQuery, TermMatch, PhraseMatch diff --git a/alerts/ldap_lockout.py b/alerts/ldap_lockout.py index aa05506d..7db260ba 100644 --- a/alerts/ldap_lockout.py +++ b/alerts/ldap_lockout.py @@ -4,7 +4,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2014 Mozilla Corporation -# from lib.alerttask import AlertTask from query_models import SearchQuery, TermMatch, PhraseMatch diff --git a/alerts/lib/alerttask.py b/alerts/lib/alerttask.py index d3f17625..4388529b 100644 --- a/alerts/lib/alerttask.py +++ b/alerts/lib/alerttask.py @@ -4,7 +4,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2017 Mozilla Corporation -# import collections import json diff --git a/alerts/lib/config.py b/alerts/lib/config.py index 3de3eb51..1348de75 100644 --- a/alerts/lib/config.py +++ b/alerts/lib/config.py @@ -4,7 +4,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2014 Mozilla Corporation -# from celery.schedules import crontab, timedelta import time diff --git a/alerts/multiple_intel_hits.py b/alerts/multiple_intel_hits.py index acb28dab..db0f171b 100644 --- a/alerts/multiple_intel_hits.py +++ b/alerts/multiple_intel_hits.py @@ -4,7 +4,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2014 Mozilla Corporation -# from lib.alerttask import AlertTask from query_models import SearchQuery, TermMatch, ExistsMatch, TermsMatch diff --git a/alerts/open_port_violation.py b/alerts/open_port_violation.py index 0d0f8c43..5d8e032a 100644 --- a/alerts/open_port_violation.py +++ b/alerts/open_port_violation.py @@ -4,7 +4,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2017 Mozilla Corporation -# from lib.alerttask import AlertTask from query_models import SearchQuery, TermMatch, PhraseMatch diff --git a/alerts/plugins/dashboard_geomodel.py b/alerts/plugins/dashboard_geomodel.py index 99638185..11d79552 100644 --- a/alerts/plugins/dashboard_geomodel.py +++ b/alerts/plugins/dashboard_geomodel.py @@ -2,7 +2,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2014 Mozilla Corporation -# import hjson import os diff --git a/alerts/plugins/pagerDutyTriggerEvent.py b/alerts/plugins/pagerDutyTriggerEvent.py index a7dbfa05..44e22494 100644 --- a/alerts/plugins/pagerDutyTriggerEvent.py +++ b/alerts/plugins/pagerDutyTriggerEvent.py @@ -2,7 +2,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2014 Mozilla Corporation -# import requests import json diff --git a/alerts/proxy_drop.py b/alerts/proxy_drop.py index 0daee329..60e23b2d 100644 --- a/alerts/proxy_drop.py +++ b/alerts/proxy_drop.py @@ -4,7 +4,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2014 Mozilla Corporation -# from lib.alerttask import AlertTask diff --git a/alerts/sqs_queues_deadman.py b/alerts/sqs_queues_deadman.py index 854e6b03..13156401 100644 --- a/alerts/sqs_queues_deadman.py +++ b/alerts/sqs_queues_deadman.py @@ -4,7 +4,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2017 Mozilla Corporation -# from lib.alerttask import AlertTask from query_models import SearchQuery, TermMatch diff --git a/alerts/ssh_access_signreleng.py b/alerts/ssh_access_signreleng.py index 9daea1e3..5094e6cd 100644 --- a/alerts/ssh_access_signreleng.py +++ b/alerts/ssh_access_signreleng.py @@ -4,7 +4,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2017 Mozilla Corporation -# from lib.alerttask import AlertTask from query_models import SearchQuery, TermMatch, PhraseMatch, QueryStringMatch diff --git a/alerts/ssh_bruteforce_bro.py b/alerts/ssh_bruteforce_bro.py index e9fcc127..c7982bfb 100644 --- a/alerts/ssh_bruteforce_bro.py +++ b/alerts/ssh_bruteforce_bro.py @@ -4,7 +4,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2017 Mozilla Corporation -# from lib.alerttask import AlertTask from query_models import SearchQuery, TermMatch, ExistsMatch, PhraseMatch diff --git a/alerts/ssh_ioc.py b/alerts/ssh_ioc.py index 83852348..786f7e26 100644 --- a/alerts/ssh_ioc.py +++ b/alerts/ssh_ioc.py @@ -4,7 +4,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2015 Mozilla Corporation -# from lib.alerttask import AlertTask from query_models import SearchQuery, TermMatch diff --git a/alerts/ssh_key.py b/alerts/ssh_key.py index 29af09c6..7fdc21a1 100644 --- a/alerts/ssh_key.py +++ b/alerts/ssh_key.py @@ -4,7 +4,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2017 Mozilla Corporation -# from lib.alerttask import AlertTask from query_models import SearchQuery, TermMatch diff --git a/alerts/ssh_lateral.py b/alerts/ssh_lateral.py index 0a48e719..9bb0e326 100644 --- a/alerts/ssh_lateral.py +++ b/alerts/ssh_lateral.py @@ -4,7 +4,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2017 Mozilla Corporation -# from lib.alerttask import AlertTask from query_models import SearchQuery, TermMatch, QueryStringMatch, PhraseMatch diff --git a/alerts/ssl_blacklist_hit.py b/alerts/ssl_blacklist_hit.py index cbe050b6..516fcbda 100644 --- a/alerts/ssl_blacklist_hit.py +++ b/alerts/ssl_blacklist_hit.py @@ -4,7 +4,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2014 Mozilla Corporation -# from lib.alerttask import AlertTask from query_models import SearchQuery, TermMatch, ExistsMatch diff --git a/alerts/unauth_ssh.py b/alerts/unauth_ssh.py index d5a61259..84ebc857 100644 --- a/alerts/unauth_ssh.py +++ b/alerts/unauth_ssh.py @@ -4,7 +4,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2015 Mozilla Corporation -# from lib.alerttask import AlertTask from query_models import SearchQuery, TermMatch, QueryStringMatch, PhraseMatch diff --git a/alerts/vpn_duo_auth_failures.py b/alerts/vpn_duo_auth_failures.py index f8354040..0b19a8c2 100644 --- a/alerts/vpn_duo_auth_failures.py +++ b/alerts/vpn_duo_auth_failures.py @@ -4,7 +4,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2014 Mozilla Corporation -# from lib.alerttask import AlertTask from query_models import SearchQuery, TermMatch, PhraseMatch diff --git a/benchmarking/workers/json2Mozdef.py b/benchmarking/workers/json2Mozdef.py index e62e1236..0aba1294 100755 --- a/benchmarking/workers/json2Mozdef.py +++ b/benchmarking/workers/json2Mozdef.py @@ -4,7 +4,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2014 Mozilla Corporation -# import os import sys diff --git a/bot/modules/zilla.py b/bot/modules/zilla.py index 30bfa8b8..8b5ed51f 100644 --- a/bot/modules/zilla.py +++ b/bot/modules/zilla.py @@ -5,7 +5,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2014 Mozilla Corporation -# import logging from kitnirc.client import Channel diff --git a/bot/mozdefbot.py b/bot/mozdefbot.py index 354126e7..36eba26e 100755 --- a/bot/mozdefbot.py +++ b/bot/mozdefbot.py @@ -3,7 +3,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2014 Mozilla Corporation -# """mozdef bot using KitnIRC.""" import json diff --git a/bot/mozdefbot_slack.py b/bot/mozdefbot_slack.py index 8effaf2d..337d1f6f 100644 --- a/bot/mozdefbot_slack.py +++ b/bot/mozdefbot_slack.py @@ -3,7 +3,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2014 Mozilla Corporation -# """ mozdef bot using slack to install - 'pip install slackclient' diff --git a/cron/backupSnapshot.py b/cron/backupSnapshot.py index 92aa2680..451d8115 100755 --- a/cron/backupSnapshot.py +++ b/cron/backupSnapshot.py @@ -4,7 +4,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2014 Mozilla Corporation -# # Snapshot configured backups # Meant to be run once/day diff --git a/cron/collectAttackers.py b/cron/collectAttackers.py index 3086762d..71ee5781 100755 --- a/cron/collectAttackers.py +++ b/cron/collectAttackers.py @@ -4,7 +4,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2014 Mozilla Corporation -# import collections import json diff --git a/cron/collectSSHFingerprints.py b/cron/collectSSHFingerprints.py index 9453bc52..6fbdbe8f 100755 --- a/cron/collectSSHFingerprints.py +++ b/cron/collectSSHFingerprints.py @@ -4,7 +4,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2014 Mozilla Corporation -# import logging import random diff --git a/cron/correlateUserMacAddress.py b/cron/correlateUserMacAddress.py index 0b5b749c..042b9fba 100755 --- a/cron/correlateUserMacAddress.py +++ b/cron/correlateUserMacAddress.py @@ -4,7 +4,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2014 Mozilla Corporation -# import json import logging diff --git a/cron/createIPBlockList.py b/cron/createIPBlockList.py index 6b72beee..e755c1b6 100755 --- a/cron/createIPBlockList.py +++ b/cron/createIPBlockList.py @@ -4,7 +4,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2014 Mozilla Corporation -# import boto import boto.s3 diff --git a/cron/eventStats.py b/cron/eventStats.py index 49dfa5cc..5e71ebee 100755 --- a/cron/eventStats.py +++ b/cron/eventStats.py @@ -4,7 +4,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2014 Mozilla Corporation -# import json import logging diff --git a/cron/google2mozdef.py b/cron/google2mozdef.py index d72593c5..eebc01c3 100755 --- a/cron/google2mozdef.py +++ b/cron/google2mozdef.py @@ -4,7 +4,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2014 Mozilla Corporation -# import os import sys diff --git a/cron/healthAndStatus.py b/cron/healthAndStatus.py index 2947d770..858dc9e0 100755 --- a/cron/healthAndStatus.py +++ b/cron/healthAndStatus.py @@ -4,7 +4,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2014 Mozilla Corporation -# import json import logging diff --git a/cron/healthToMongo.py b/cron/healthToMongo.py index b349bf6d..8ae2037f 100755 --- a/cron/healthToMongo.py +++ b/cron/healthToMongo.py @@ -4,7 +4,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2014 Mozilla Corporation -# import logging import requests diff --git a/cron/import_threat_exchange.py b/cron/import_threat_exchange.py index 9a6f46d8..82fda425 100644 --- a/cron/import_threat_exchange.py +++ b/cron/import_threat_exchange.py @@ -4,7 +4,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2017 Mozilla Corporation -# import os import sys diff --git a/cron/okta2mozdef.py b/cron/okta2mozdef.py index a96dad01..d2e8630a 100755 --- a/cron/okta2mozdef.py +++ b/cron/okta2mozdef.py @@ -4,7 +4,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2014 Mozilla Corporation -# import os import sys diff --git a/cron/pruneIndexes.py b/cron/pruneIndexes.py index 5c984363..eb6f9042 100755 --- a/cron/pruneIndexes.py +++ b/cron/pruneIndexes.py @@ -4,7 +4,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2014 Mozilla Corporation -# # set this to run as a cronjob (after backup has completed) # to regularly remove indexes diff --git a/cron/rotateIndexes.py b/cron/rotateIndexes.py index 5b20ae82..edd3e7de 100755 --- a/cron/rotateIndexes.py +++ b/cron/rotateIndexes.py @@ -4,7 +4,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2014 Mozilla Corporation -# # set this to run as a cronjob at 00:00 UTC to create the indexes # necessary for mozdef diff --git a/cron/setupIndexTemplates.py b/cron/setupIndexTemplates.py index bee90d25..062c4a91 100755 --- a/cron/setupIndexTemplates.py +++ b/cron/setupIndexTemplates.py @@ -4,7 +4,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2014 Mozilla Corporation -# # Use this to setup the index templates for mozdef # You only need to run it once, it will setup the templates @@ -45,4 +44,4 @@ if __name__ == '__main__': initConfig() es = es_module.Elasticsearch(options.esservers[0]) for templatename, templatefile in zip(options.templatenames, options.templatefiles): - es.setupIndexTemplate(templatename, templatefile) \ No newline at end of file + es.setupIndexTemplate(templatename, templatefile) diff --git a/cron/syncAlertsToMongo.py b/cron/syncAlertsToMongo.py index 9a4cb97e..535ee91b 100755 --- a/cron/syncAlertsToMongo.py +++ b/cron/syncAlertsToMongo.py @@ -4,7 +4,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2014 Mozilla Corporation -# import calendar import logging diff --git a/cron/update_generic_alerts.py b/cron/update_generic_alerts.py index 278cb345..d035c650 100755 --- a/cron/update_generic_alerts.py +++ b/cron/update_generic_alerts.py @@ -4,7 +4,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2017 Mozilla Corporation -# from git import Repo, cmd diff --git a/cron/update_geolite_db.py b/cron/update_geolite_db.py index c6d0c669..776b3d68 100755 --- a/cron/update_geolite_db.py +++ b/cron/update_geolite_db.py @@ -4,7 +4,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2017 Mozilla Corporation -# import sys import os diff --git a/cron/update_ip_list.py b/cron/update_ip_list.py index fbdb796e..6619e2b3 100644 --- a/cron/update_ip_list.py +++ b/cron/update_ip_list.py @@ -4,7 +4,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2017 Mozilla Corporation -# import sys import os diff --git a/cron/verify_event_fields.py b/cron/verify_event_fields.py index 509cff11..7f1b0823 100644 --- a/cron/verify_event_fields.py +++ b/cron/verify_event_fields.py @@ -4,7 +4,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2017 Mozilla Corporation -# import sys import os diff --git a/docker/compose/mozdef_alerts/files/config.py b/docker/compose/mozdef_alerts/files/config.py index 679ee196..c8104310 100644 --- a/docker/compose/mozdef_alerts/files/config.py +++ b/docker/compose/mozdef_alerts/files/config.py @@ -4,7 +4,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2014 Mozilla Corporation -# from celery.schedules import crontab, timedelta import time diff --git a/docker/conf/config.py b/docker/conf/config.py index 4c4814ed..091c6e06 100644 --- a/docker/conf/config.py +++ b/docker/conf/config.py @@ -4,7 +4,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2014 Mozilla Corporation -# from celery.schedules import crontab, timedelta import time diff --git a/docker/conf/initial_setup.py b/docker/conf/initial_setup.py index fe63162a..a578d08b 100644 --- a/docker/conf/initial_setup.py +++ b/docker/conf/initial_setup.py @@ -4,7 +4,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2014 Mozilla Corporation -# import argparse diff --git a/examples/demo/sampleData2MozDef.py b/examples/demo/sampleData2MozDef.py index 59502d82..f81e4e5d 100755 --- a/examples/demo/sampleData2MozDef.py +++ b/examples/demo/sampleData2MozDef.py @@ -4,7 +4,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2014 Mozilla Corporation -# import os import sys diff --git a/examples/es-docs/inject.py b/examples/es-docs/inject.py index 675b2060..96b13ac2 100644 --- a/examples/es-docs/inject.py +++ b/examples/es-docs/inject.py @@ -4,7 +4,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2014 Mozilla Corporation -# import os import sys diff --git a/examples/plugins/dummy_id.py b/examples/plugins/dummy_id.py index e400e187..e4f09c8d 100644 --- a/examples/plugins/dummy_id.py +++ b/examples/plugins/dummy_id.py @@ -2,7 +2,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2014 Mozilla Corporation -# class message(object): diff --git a/lib/query_models/aggregated_results.py b/lib/query_models/aggregated_results.py index 5ba0e88c..f751cf44 100644 --- a/lib/query_models/aggregated_results.py +++ b/lib/query_models/aggregated_results.py @@ -4,7 +4,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2017 Mozilla Corporation -# def AggregatedResults(input_results): diff --git a/lib/query_models/aggregation.py b/lib/query_models/aggregation.py index 7f85e13e..7d255e73 100644 --- a/lib/query_models/aggregation.py +++ b/lib/query_models/aggregation.py @@ -4,7 +4,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2017 Mozilla Corporation -# from elasticsearch_dsl import A diff --git a/lib/query_models/boolean_match.py b/lib/query_models/boolean_match.py index 483dbcee..9b84e26e 100644 --- a/lib/query_models/boolean_match.py +++ b/lib/query_models/boolean_match.py @@ -4,7 +4,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2017 Mozilla Corporation -# from elasticsearch_dsl import Q diff --git a/lib/query_models/exists_match.py b/lib/query_models/exists_match.py index 2c2c0765..92af5ebe 100644 --- a/lib/query_models/exists_match.py +++ b/lib/query_models/exists_match.py @@ -4,7 +4,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2017 Mozilla Corporation -# from elasticsearch_dsl import Q diff --git a/lib/query_models/less_than_match.py b/lib/query_models/less_than_match.py index 36a64aea..5f3e311f 100644 --- a/lib/query_models/less_than_match.py +++ b/lib/query_models/less_than_match.py @@ -4,7 +4,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2017 Mozilla Corporation -# from elasticsearch_dsl import Q diff --git a/lib/query_models/missing_match.py b/lib/query_models/missing_match.py index 3f9d131b..0a892d6a 100644 --- a/lib/query_models/missing_match.py +++ b/lib/query_models/missing_match.py @@ -4,7 +4,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2017 Mozilla Corporation -# from elasticsearch_dsl import Q diff --git a/lib/query_models/phrase_match.py b/lib/query_models/phrase_match.py index 9008d85d..22905896 100644 --- a/lib/query_models/phrase_match.py +++ b/lib/query_models/phrase_match.py @@ -4,7 +4,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2017 Mozilla Corporation -# from elasticsearch_dsl import Q diff --git a/lib/query_models/query_string_match.py b/lib/query_models/query_string_match.py index 0f0b4c3b..47505505 100644 --- a/lib/query_models/query_string_match.py +++ b/lib/query_models/query_string_match.py @@ -4,7 +4,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2017 Mozilla Corporation -# from elasticsearch_dsl import Q diff --git a/lib/query_models/range_match.py b/lib/query_models/range_match.py index 3fcb1adb..b1a81d27 100644 --- a/lib/query_models/range_match.py +++ b/lib/query_models/range_match.py @@ -4,7 +4,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2017 Mozilla Corporation -# from elasticsearch_dsl import Q diff --git a/lib/query_models/search_query.py b/lib/query_models/search_query.py index d30e1b10..50d093a5 100644 --- a/lib/query_models/search_query.py +++ b/lib/query_models/search_query.py @@ -4,7 +4,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2017 Mozilla Corporation -# from utilities.toUTC import toUTC diff --git a/lib/query_models/simple_results.py b/lib/query_models/simple_results.py index 74d15c4e..0f2a3486 100644 --- a/lib/query_models/simple_results.py +++ b/lib/query_models/simple_results.py @@ -4,7 +4,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2017 Mozilla Corporation -# def SimpleResults(input_results): diff --git a/lib/query_models/term_match.py b/lib/query_models/term_match.py index feadd8e5..977d716d 100644 --- a/lib/query_models/term_match.py +++ b/lib/query_models/term_match.py @@ -4,7 +4,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2017 Mozilla Corporation -# from elasticsearch_dsl import Q diff --git a/lib/query_models/terms_match.py b/lib/query_models/terms_match.py index c9aa2ced..4ab4be17 100644 --- a/lib/query_models/terms_match.py +++ b/lib/query_models/terms_match.py @@ -4,7 +4,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2017 Mozilla Corporation -# from elasticsearch_dsl import Q diff --git a/lib/query_models/wildcard_match.py b/lib/query_models/wildcard_match.py index 1baa62cc..e06c24a8 100644 --- a/lib/query_models/wildcard_match.py +++ b/lib/query_models/wildcard_match.py @@ -4,7 +4,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2017 Mozilla Corporation -# from elasticsearch_dsl import Q diff --git a/lib/utilities/dot_dict.py b/lib/utilities/dot_dict.py index f5494965..6413ef65 100644 --- a/lib/utilities/dot_dict.py +++ b/lib/utilities/dot_dict.py @@ -4,7 +4,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2017 Mozilla Corporation -# class DotDict(dict): diff --git a/lib/utilities/logger.py b/lib/utilities/logger.py index 723bb868..72fb785e 100644 --- a/lib/utilities/logger.py +++ b/lib/utilities/logger.py @@ -4,7 +4,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2017 Mozilla Corporation -# import logging import sys diff --git a/loginput/index.py b/loginput/index.py index 6f1e19c3..98c75876 100644 --- a/loginput/index.py +++ b/loginput/index.py @@ -2,7 +2,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2017 Mozilla Corporation -# import os import sys diff --git a/mq/esworker_cloudtrail.py b/mq/esworker_cloudtrail.py index f2915cbb..31e58af7 100755 --- a/mq/esworker_cloudtrail.py +++ b/mq/esworker_cloudtrail.py @@ -4,7 +4,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2017 Mozilla Corporation -# import json diff --git a/mq/esworker_eventtask.py b/mq/esworker_eventtask.py index a1f5801a..4c72385c 100755 --- a/mq/esworker_eventtask.py +++ b/mq/esworker_eventtask.py @@ -4,7 +4,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2014 Mozilla Corporation -# import json diff --git a/mq/esworker_papertrail.py b/mq/esworker_papertrail.py index effabcb7..0a07a194 100755 --- a/mq/esworker_papertrail.py +++ b/mq/esworker_papertrail.py @@ -4,7 +4,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2015 Mozilla Corporation -# # Reads from papertrail using the API and inserts log data into ES in # the same manner as esworker_eventtask.py diff --git a/mq/esworker_sns_sqs.py b/mq/esworker_sns_sqs.py index f9273a68..550fe254 100755 --- a/mq/esworker_sns_sqs.py +++ b/mq/esworker_sns_sqs.py @@ -4,7 +4,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2017 Mozilla Corporation -# import json diff --git a/mq/esworker_sqs.py b/mq/esworker_sqs.py index 726e006c..d545b8c7 100755 --- a/mq/esworker_sqs.py +++ b/mq/esworker_sqs.py @@ -4,7 +4,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2014 Mozilla Corporation -# # kombu's support for SQS is buggy # so this version uses boto diff --git a/mq/lib/plugins.py b/mq/lib/plugins.py index e12ad5c4..5c0721c8 100644 --- a/mq/lib/plugins.py +++ b/mq/lib/plugins.py @@ -4,7 +4,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2017 Mozilla Corporation -# import sys diff --git a/mq/plugins/auditdFixup.py b/mq/plugins/auditdFixup.py index 07787d6b..d62d748d 100644 --- a/mq/plugins/auditdFixup.py +++ b/mq/plugins/auditdFixup.py @@ -2,7 +2,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2014 Mozilla Corporation -# class message(object): @@ -109,4 +108,4 @@ class message(object): #set doctype metadata['doc_type'] = 'auditd' - return (message, metadata) \ No newline at end of file + return (message, metadata) diff --git a/mq/plugins/broFixup.py b/mq/plugins/broFixup.py index 070c1139..97b13997 100644 --- a/mq/plugins/broFixup.py +++ b/mq/plugins/broFixup.py @@ -2,7 +2,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2017 Mozilla Corporation -# import netaddr from utilities.toUTC import toUTC diff --git a/mq/plugins/complianceitems.py b/mq/plugins/complianceitems.py index a3ce26fe..7e4d62b6 100644 --- a/mq/plugins/complianceitems.py +++ b/mq/plugins/complianceitems.py @@ -2,7 +2,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2014 Mozilla Corporation -# import hashlib import sys diff --git a/mq/plugins/customDocType.py b/mq/plugins/customDocType.py index be36b536..41bac6ce 100644 --- a/mq/plugins/customDocType.py +++ b/mq/plugins/customDocType.py @@ -2,7 +2,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2014 Mozilla Corporation -# class message(object): @@ -24,4 +23,4 @@ class message(object): if isinstance(message['endpoint'], str) or \ isinstance(message['endpoint'], unicode): metadata['doc_type']= message['endpoint'] - return (message, metadata) \ No newline at end of file + return (message, metadata) diff --git a/mq/plugins/dropMessage.py b/mq/plugins/dropMessage.py index 77ed50a6..82236f5b 100644 --- a/mq/plugins/dropMessage.py +++ b/mq/plugins/dropMessage.py @@ -2,7 +2,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2014 Mozilla Corporation -# class message(object): diff --git a/mq/plugins/filterlog.py b/mq/plugins/filterlog.py index 9dc4bc8b..d9ed256d 100644 --- a/mq/plugins/filterlog.py +++ b/mq/plugins/filterlog.py @@ -2,7 +2,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2017 Mozilla Corporation -# class message(object): diff --git a/mq/plugins/fluentdSqsFixup.py b/mq/plugins/fluentdSqsFixup.py index 51dd22fa..b60b230a 100644 --- a/mq/plugins/fluentdSqsFixup.py +++ b/mq/plugins/fluentdSqsFixup.py @@ -4,7 +4,6 @@ # Copyright (c) 2015 Mozilla Corporation # # This script copies the format/handling mechanism of ipFixup.py (git f5734b0c7e412424b44a6d7af149de6250fc70a2) -# import netaddr import sys diff --git a/mq/plugins/fxaFixup.py b/mq/plugins/fxaFixup.py index 9a955c84..fb073a30 100644 --- a/mq/plugins/fxaFixup.py +++ b/mq/plugins/fxaFixup.py @@ -2,7 +2,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2017 Mozilla Corporation -# import netaddr diff --git a/mq/plugins/geoip.py b/mq/plugins/geoip.py index 50148738..fd5ee9b2 100644 --- a/mq/plugins/geoip.py +++ b/mq/plugins/geoip.py @@ -2,7 +2,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2014 Mozilla Corporation -# import netaddr import os diff --git a/mq/plugins/googleFixup.py b/mq/plugins/googleFixup.py index 02ae7784..4fc9c2e7 100644 --- a/mq/plugins/googleFixup.py +++ b/mq/plugins/googleFixup.py @@ -2,7 +2,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2014 Mozilla Corporation -# class message(object): @@ -32,4 +31,4 @@ class message(object): metadata['doc_type']= 'google' - return (message, metadata) \ No newline at end of file + return (message, metadata) diff --git a/mq/plugins/ipFixup.py b/mq/plugins/ipFixup.py index 7511a528..8d8f5bc3 100644 --- a/mq/plugins/ipFixup.py +++ b/mq/plugins/ipFixup.py @@ -2,7 +2,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2014 Mozilla Corporation -# import netaddr diff --git a/mq/plugins/mozilla_location.py b/mq/plugins/mozilla_location.py index 11849c2e..cc7b23cf 100644 --- a/mq/plugins/mozilla_location.py +++ b/mq/plugins/mozilla_location.py @@ -2,7 +2,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2017 Mozilla Corporation -# import os from configlib import getConfig diff --git a/mq/plugins/nagioshostname.py b/mq/plugins/nagioshostname.py index dd3f7c56..45205b8d 100644 --- a/mq/plugins/nagioshostname.py +++ b/mq/plugins/nagioshostname.py @@ -2,7 +2,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2014 Mozilla Corporation -# import hashlib class message(object): @@ -11,15 +10,15 @@ class message(object): takes an incoming nagios message and assigns a static ID so we always update the same doc for current status. ''' - + # this plugin # sets a static document ID # for a particular event to allow you to have an event that just updates # current status self.registration = ['nagios_hostname'] self.priority = 5 - + def onMessage(self, message, metadata): docid=hashlib.md5('nagiosstatus'+message['details']['nagios_hostname']).hexdigest() metadata['id']=docid - return (message, metadata) \ No newline at end of file + return (message, metadata) diff --git a/mq/plugins/netflowFixup.py b/mq/plugins/netflowFixup.py index fb3acca7..093aa3aa 100644 --- a/mq/plugins/netflowFixup.py +++ b/mq/plugins/netflowFixup.py @@ -2,7 +2,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2014 Mozilla Corporation -# class message(object): @@ -11,14 +10,14 @@ class message(object): takes an incoming message and sets the doc_type ''' - + self.registration = ['netflow'] self.priority = 5 - + def onMessage(self, message, metadata): # set the doc type - # to avoid data type conflicts with other doc types + # to avoid data type conflicts with other doc types # (int v string, etc) metadata['doc_type']= 'netflow' - return (message, metadata) \ No newline at end of file + return (message, metadata) diff --git a/mq/plugins/observium.py b/mq/plugins/observium.py index 8225e070..ccf92b12 100644 --- a/mq/plugins/observium.py +++ b/mq/plugins/observium.py @@ -2,7 +2,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2014 Mozilla Corporation -# import re diff --git a/mq/plugins/parse_sshd.py b/mq/plugins/parse_sshd.py index a3c25c93..acfc7a06 100644 --- a/mq/plugins/parse_sshd.py +++ b/mq/plugins/parse_sshd.py @@ -2,7 +2,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2017 Mozilla Corporation -# import sys import os diff --git a/mq/plugins/parse_su.py b/mq/plugins/parse_su.py index 9237425c..b009f935 100644 --- a/mq/plugins/parse_su.py +++ b/mq/plugins/parse_su.py @@ -2,7 +2,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2017 Mozilla Corporation -# import sys import os diff --git a/mq/plugins/rt_flow.py b/mq/plugins/rt_flow.py index ec6fad9c..4b42b535 100644 --- a/mq/plugins/rt_flow.py +++ b/mq/plugins/rt_flow.py @@ -2,7 +2,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2014 Mozilla Corporation -# import re @@ -56,4 +55,4 @@ class message(object): message['details']['sessionid'] = create_search.group('sessionid') message['details']['interface'] = create_search.group('interface') - return (message, metadata) \ No newline at end of file + return (message, metadata) diff --git a/mq/plugins/snmptt.py b/mq/plugins/snmptt.py index 005fc048..e7d0441d 100644 --- a/mq/plugins/snmptt.py +++ b/mq/plugins/snmptt.py @@ -2,7 +2,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2014 Mozilla Corporation -# import re @@ -30,4 +29,4 @@ class message(object): message['details']['trappayload'] = search.group('trappayload') message['details']['hostname'] = search.group('source_host') - return (message, metadata) \ No newline at end of file + return (message, metadata) diff --git a/mq/plugins/sshdFindIP.py b/mq/plugins/sshdFindIP.py index 45823811..7b8c6251 100644 --- a/mq/plugins/sshdFindIP.py +++ b/mq/plugins/sshdFindIP.py @@ -2,7 +2,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2014 Mozilla Corporation -# import netaddr @@ -60,4 +59,4 @@ class message(object): message['details'] = dict() message['details']['sourceipaddress'] = foundIPv4 - return (message, metadata) \ No newline at end of file + return (message, metadata) diff --git a/mq/plugins/ttl_auditd.py b/mq/plugins/ttl_auditd.py index 2f11f141..bcd65552 100644 --- a/mq/plugins/ttl_auditd.py +++ b/mq/plugins/ttl_auditd.py @@ -2,7 +2,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2014 Mozilla Corporation -# class message(object): diff --git a/mq/plugins/vidyoCallID.py b/mq/plugins/vidyoCallID.py index 372bd407..2716fe50 100644 --- a/mq/plugins/vidyoCallID.py +++ b/mq/plugins/vidyoCallID.py @@ -2,7 +2,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2014 Mozilla Corporation -# import hashlib class message(object): @@ -11,16 +10,16 @@ class message(object): takes an incoming vidyo call record and assigns a static ID so we always update the same doc for current status. ''' - + # this plugin # sets a static document ID # for a particular event to allow you to have an event that just updates # current status self.registration = ['uniquecallid'] self.priority = 5 - + def onMessage(self, message, metadata): docid=hashlib.md5('vidyoUniqueCallID'+message['details']['UniqueCallID']).hexdigest() metadata['id']=docid metadata['doc_type'] = 'vidyo' - return (message, metadata) \ No newline at end of file + return (message, metadata) diff --git a/mq/plugins/vulnerability.py b/mq/plugins/vulnerability.py index a234967d..f02c16fc 100644 --- a/mq/plugins/vulnerability.py +++ b/mq/plugins/vulnerability.py @@ -2,7 +2,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2015 Mozilla Corporation -# import hashlib import sys diff --git a/rest/index.py b/rest/index.py index 49c9c3c0..4f17ab32 100644 --- a/rest/index.py +++ b/rest/index.py @@ -2,7 +2,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2014 Mozilla Corporation -# import bottle import json diff --git a/rest/plugins/banhammer.py b/rest/plugins/banhammer.py index 7e18eaf2..5c9c7093 100644 --- a/rest/plugins/banhammer.py +++ b/rest/plugins/banhammer.py @@ -2,7 +2,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2014 Mozilla Corporation -# import os import sys diff --git a/rest/plugins/cymon.py b/rest/plugins/cymon.py index 7cdbe75d..1ecb52f6 100644 --- a/rest/plugins/cymon.py +++ b/rest/plugins/cymon.py @@ -2,7 +2,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2014 Mozilla Corporation -# import requests import json diff --git a/rest/plugins/facebook_threatexchange.py b/rest/plugins/facebook_threatexchange.py index 42f00561..ed376c15 100644 --- a/rest/plugins/facebook_threatexchange.py +++ b/rest/plugins/facebook_threatexchange.py @@ -2,7 +2,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2014 Mozilla Corporation -# import os import sys diff --git a/rest/plugins/vpc_blackhole.py b/rest/plugins/vpc_blackhole.py index c1680455..50312328 100644 --- a/rest/plugins/vpc_blackhole.py +++ b/rest/plugins/vpc_blackhole.py @@ -2,7 +2,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2014 Mozilla Corporation -# import os import sys diff --git a/tests/alerts/alert_test_suite.py b/tests/alerts/alert_test_suite.py index 9af8c993..825f2d86 100644 --- a/tests/alerts/alert_test_suite.py +++ b/tests/alerts/alert_test_suite.py @@ -4,7 +4,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2017 Mozilla Corporation -# import os.path import sys diff --git a/tests/alerts/test_bruteforce_ssh.py b/tests/alerts/test_bruteforce_ssh.py index 5401d970..a53a9a5a 100644 --- a/tests/alerts/test_bruteforce_ssh.py +++ b/tests/alerts/test_bruteforce_ssh.py @@ -2,7 +2,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2017 Mozilla Corporation -# from positive_alert_test_case import PositiveAlertTestCase from negative_alert_test_case import NegativeAlertTestCase diff --git a/tests/alerts/test_duo_authfail.py b/tests/alerts/test_duo_authfail.py index 80dfb37f..3aacdf29 100644 --- a/tests/alerts/test_duo_authfail.py +++ b/tests/alerts/test_duo_authfail.py @@ -2,7 +2,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2017 Mozilla Corporation -# from positive_alert_test_case import PositiveAlertTestCase from negative_alert_test_case import NegativeAlertTestCase diff --git a/tests/alerts/test_geomodel.py b/tests/alerts/test_geomodel.py index 3c8aa2ec..6349817d 100644 --- a/tests/alerts/test_geomodel.py +++ b/tests/alerts/test_geomodel.py @@ -2,7 +2,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2017 Mozilla Corporation -# from positive_alert_test_case import PositiveAlertTestCase from negative_alert_test_case import NegativeAlertTestCase diff --git a/tests/alerts/test_open_port_violation.py b/tests/alerts/test_open_port_violation.py index faf10136..b786e7b4 100644 --- a/tests/alerts/test_open_port_violation.py +++ b/tests/alerts/test_open_port_violation.py @@ -2,7 +2,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2017 Mozilla Corporation -# from positive_alert_test_case import PositiveAlertTestCase from negative_alert_test_case import NegativeAlertTestCase diff --git a/tests/alerts/test_session_opened_sensitive_user.py b/tests/alerts/test_session_opened_sensitive_user.py index f082f06c..0e8f9e20 100644 --- a/tests/alerts/test_session_opened_sensitive_user.py +++ b/tests/alerts/test_session_opened_sensitive_user.py @@ -4,7 +4,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2017 Mozilla Corporation -# from positive_alert_test_case import PositiveAlertTestCase from negative_alert_test_case import NegativeAlertTestCase diff --git a/tests/alerts/test_sqs_queues_deadman.py b/tests/alerts/test_sqs_queues_deadman.py index 8f370f9b..b5505ab3 100644 --- a/tests/alerts/test_sqs_queues_deadman.py +++ b/tests/alerts/test_sqs_queues_deadman.py @@ -4,7 +4,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2017 Mozilla Corporation -# from positive_alert_test_case import PositiveAlertTestCase from negative_alert_test_case import NegativeAlertTestCase diff --git a/tests/lib/query_models/query_test_suite.py b/tests/lib/query_models/query_test_suite.py index 0e42f614..5ff64b7f 100644 --- a/tests/lib/query_models/query_test_suite.py +++ b/tests/lib/query_models/query_test_suite.py @@ -4,7 +4,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2017 Mozilla Corporation -# import os import sys diff --git a/tests/lib/query_models/test_aggregation.py b/tests/lib/query_models/test_aggregation.py index 51063fea..09753252 100644 --- a/tests/lib/query_models/test_aggregation.py +++ b/tests/lib/query_models/test_aggregation.py @@ -4,7 +4,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2017 Mozilla Corporation -# import os import sys diff --git a/tests/lib/test_elasticsearch_client.py b/tests/lib/test_elasticsearch_client.py index 264bab9c..878da94a 100644 --- a/tests/lib/test_elasticsearch_client.py +++ b/tests/lib/test_elasticsearch_client.py @@ -4,7 +4,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2017 Mozilla Corporation -# import os import sys diff --git a/tests/lib/test_plugins/plugin1.py b/tests/lib/test_plugins/plugin1.py index e77d2124..b039651e 100644 --- a/tests/lib/test_plugins/plugin1.py +++ b/tests/lib/test_plugins/plugin1.py @@ -2,7 +2,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2014 Mozilla Corporation -# class message(object): diff --git a/tests/lib/test_plugins/plugin2.py b/tests/lib/test_plugins/plugin2.py index 9d00af85..462e9172 100644 --- a/tests/lib/test_plugins/plugin2.py +++ b/tests/lib/test_plugins/plugin2.py @@ -2,7 +2,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2014 Mozilla Corporation -# class message(object): diff --git a/tests/lib/test_plugins/plugin3.py b/tests/lib/test_plugins/plugin3.py index 64a70125..1a55aa1d 100644 --- a/tests/lib/test_plugins/plugin3.py +++ b/tests/lib/test_plugins/plugin3.py @@ -2,7 +2,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2014 Mozilla Corporation -# class message(object): diff --git a/tests/lib/test_plugins/plugin4.py b/tests/lib/test_plugins/plugin4.py index 3305c355..20e3f312 100644 --- a/tests/lib/test_plugins/plugin4.py +++ b/tests/lib/test_plugins/plugin4.py @@ -2,7 +2,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2014 Mozilla Corporation -# class message(object): diff --git a/tests/lib/test_plugins/plugin5.py b/tests/lib/test_plugins/plugin5.py index cd6f4dac..f99ae7bc 100644 --- a/tests/lib/test_plugins/plugin5.py +++ b/tests/lib/test_plugins/plugin5.py @@ -2,7 +2,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2014 Mozilla Corporation -# class message(object): diff --git a/tests/lib/test_plugins/plugin6.py b/tests/lib/test_plugins/plugin6.py index 10024a3f..a6714635 100644 --- a/tests/lib/test_plugins/plugin6.py +++ b/tests/lib/test_plugins/plugin6.py @@ -2,7 +2,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2014 Mozilla Corporation -# class message(object): diff --git a/tests/lib/test_plugins/plugin7.py b/tests/lib/test_plugins/plugin7.py index 4d6cb319..98f44457 100644 --- a/tests/lib/test_plugins/plugin7.py +++ b/tests/lib/test_plugins/plugin7.py @@ -2,7 +2,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2014 Mozilla Corporation -# class message(object): diff --git a/tests/lib/test_plugins/plugin8.py b/tests/lib/test_plugins/plugin8.py index 8894c3f0..e43289c0 100644 --- a/tests/lib/test_plugins/plugin8.py +++ b/tests/lib/test_plugins/plugin8.py @@ -2,7 +2,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2014 Mozilla Corporation -# class message(object): diff --git a/tests/lib/utilities/test_dot_dict.py b/tests/lib/utilities/test_dot_dict.py index 79335ca7..d6fe2ce4 100644 --- a/tests/lib/utilities/test_dot_dict.py +++ b/tests/lib/utilities/test_dot_dict.py @@ -4,7 +4,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2017 Mozilla Corporation -# import pytest diff --git a/tests/mq/plugins/test_filterlog.py b/tests/mq/plugins/test_filterlog.py index 54d9942f..84b553a2 100644 --- a/tests/mq/plugins/test_filterlog.py +++ b/tests/mq/plugins/test_filterlog.py @@ -2,7 +2,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2017 Mozilla Corporation -# import os import sys diff --git a/tests/mq/plugins/test_parse_sshd.py b/tests/mq/plugins/test_parse_sshd.py index 571926a4..a8edeca9 100644 --- a/tests/mq/plugins/test_parse_sshd.py +++ b/tests/mq/plugins/test_parse_sshd.py @@ -2,7 +2,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2017 Mozilla Corporation -# import os import sys diff --git a/tests/mq/plugins/test_parse_su.py b/tests/mq/plugins/test_parse_su.py index 69fef5fe..43e52b1c 100644 --- a/tests/mq/plugins/test_parse_su.py +++ b/tests/mq/plugins/test_parse_su.py @@ -2,7 +2,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2017 Mozilla Corporation -# import os import sys diff --git a/tests/mq/test_esworker_eventtask.py b/tests/mq/test_esworker_eventtask.py index fbf3576d..b0304871 100644 --- a/tests/mq/test_esworker_eventtask.py +++ b/tests/mq/test_esworker_eventtask.py @@ -4,7 +4,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2017 Mozilla Corporation -# import pytz import tzlocal diff --git a/tests/mq/test_esworker_sns_sqs.py b/tests/mq/test_esworker_sns_sqs.py index b9103aa0..7b7bdac8 100644 --- a/tests/mq/test_esworker_sns_sqs.py +++ b/tests/mq/test_esworker_sns_sqs.py @@ -4,7 +4,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2017 Mozilla Corporation -# import os diff --git a/tests/rest/test_rest_index.py b/tests/rest/test_rest_index.py index 608bc29c..7d3afb2e 100644 --- a/tests/rest/test_rest_index.py +++ b/tests/rest/test_rest_index.py @@ -4,7 +4,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2017 Mozilla Corporation -# import os