From 7f2c2513cf7b8d2caa201fcb4425c2e34f8af48c Mon Sep 17 00:00:00 2001 From: drymer Date: Sat, 8 Jul 2017 21:45:07 +0200 Subject: [PATCH] Rearrange imports to adapt it to pep8 --- jabbergram.py | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/jabbergram.py b/jabbergram.py index 4161c1b..ca59950 100755 --- a/jabbergram.py +++ b/jabbergram.py @@ -1,23 +1,23 @@ #!/usr/bin/env python3 # -*- coding: utf-8 -*- +import configparser +import logging +from sys import argv +from threading import Thread +from time import sleep +from xml.dom import minidom + +import sleekxmpp +import telegram +from sleekxmpp.xmlstream.stanzabase import ElementBase +from telegram.error import NetworkError, Unauthorized + + try: import requests except: - print("HTTP Upload support disabled.") - -import sleekxmpp -import telegram -import configparser -from threading import Thread -from queue import Queue -from telegram.error import NetworkError, Unauthorized -from time import sleep -from sys import argv -from sys import exit -from sleekxmpp.xmlstream.stanzabase import ElementBase -from sleekxmpp.stanza.iq import Iq -from xml.dom import minidom + logging.error("HTTP Upload support disabled.") class Request(ElementBase):