telepathy-gabble: Fix a bunch of pyflakes warnings in tests

Guillaume Desmottes gdesmott at kemper.freedesktop.org
Thu Oct 3 05:11:32 PDT 2013


Module: telepathy-gabble
Branch: master
Commit: 57a5c829c8ebe4659d8ad6bddec21e1254fb8eed
URL:    http://cgit.freedesktop.org/telepathy/telepathy-gabble/commit/?id=57a5c829c8ebe4659d8ad6bddec21e1254fb8eed

Author: Guillaume Desmottes <guillaume.desmottes at collabora.co.uk>
Date:   Thu Oct  3 13:18:36 2013 +0200

Fix a bunch of pyflakes warnings in tests

Mostly unused imports and variables.

Found using pyflakes-vim and
  pyflakes tests | awk '{split($0,a,":"); print a[1]}' | uniq | xargs gvim -p

100 more files to fix...

---

 tests/twisted/addressing.py                        |    6 ++----
 tests/twisted/avatar-requirements.py               |    3 +--
 tests/twisted/client-types.py                      |    1 -
 tests/twisted/cm/protocol.py                       |    1 -
 tests/twisted/console.py                           |    3 +--
 tests/twisted/dataforms.py                         |    6 ++----
 .../twisted/file-transfer/file_transfer_helper.py  |    1 -
 tests/twisted/file-transfer/ft-client-caps.py      |    6 ++----
 tests/twisted/file-transfer/metadata.py            |    2 +-
 .../file-transfer/test-caps-file-transfer.py       |    5 +----
 tests/twisted/file-transfer/test-ibb-too-early.py  |    2 +-
 .../file-transfer/test-send-file-declined.py       |    4 ++--
 .../test-send-file-send-before-accept.py           |    4 ----
 tests/twisted/gateways.py                          |    9 ++-------
 tests/twisted/jingle-share/file_transfer_helper.py |    5 +----
 tests/twisted/jingle-share/jingleshareutils.py     |    4 ++--
 .../jingle-share/test-caps-file-transfer.py        |    6 +++---
 tests/twisted/last-activity.py                     |    2 +-
 tests/twisted/mail-notification.py                 |    1 -
 tests/twisted/muc/avatars.py                       |    5 ++---
 tests/twisted/muc/conference.py                    |    3 +--
 tests/twisted/muc/only-text-when-needed.py         |    6 +-----
 tests/twisted/muc/presence-before-closing.py       |   10 +++-------
 tests/twisted/muc/renamed.py                       |    2 +-
 tests/twisted/muc/room-config.py                   |    4 ++--
 tests/twisted/muc/room.py                          |    5 +----
 tests/twisted/muc/scrollback.py                    |    3 ---
 tests/twisted/muc/subject.py                       |    3 +--
 tests/twisted/muc/test-ensure.py                   |    2 +-
 tests/twisted/muc/test-muc-alias.py                |    2 +-
 tests/twisted/muc/test-muc-invitation.py           |    2 --
 tests/twisted/muc/test-muc-ownership.py            |    4 +---
 tests/twisted/mucutil.py                           |    2 +-
 tests/twisted/pep-support.py                       |    5 +----
 tests/twisted/plugin-channel-managers.py           |    6 ++----
 tests/twisted/power-save.py                        |   10 ++--------
 tests/twisted/pubsub.py                            |    1 -
 tests/twisted/roster/groups-12791.py               |    2 --
 tests/twisted/roster/initial-aliases.py            |    1 -
 tests/twisted/roster/push-from-contact.py          |    2 +-
 tests/twisted/roster/test-save-alias-to-roster.py  |    1 -
 tests/twisted/sasl/abort.py                        |    4 +---
 tests/twisted/sasl/close.py                        |    2 --
 tests/twisted/sasl/complex.py                      |    2 +-
 tests/twisted/sasl/jabber_auth.py                  |   10 ++--------
 tests/twisted/sasl/plain.py                        |    7 -------
 tests/twisted/sasl/telepathy-password.py           |    2 +-
 tests/twisted/sidecar-own-caps.py                  |    3 +--
 tests/twisted/test-debug.py                        |    2 --
 tests/twisted/test-fallback-socks5-proxy.py        |    2 +-
 tests/twisted/text/send-error.py                   |    8 +++-----
 tests/twisted/text/test-chat-state.py              |    3 +--
 tests/twisted/text/test-text.py                    |    5 +----
 tests/twisted/version.py                           |    2 +-
 54 files changed, 57 insertions(+), 147 deletions(-)

Diff:   http://cgit.freedesktop.org/telepathy/telepathy-gabble/diff/?id=57a5c829c8ebe4659d8ad6bddec21e1254fb8eed


More information about the telepathy-commits mailing list