You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by to...@apache.org on 2022/12/08 21:59:04 UTC

[libcloud] 01/04: Reformat the code using isort.

This is an automated email from the ASF dual-hosted git repository.

tomaz pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/libcloud.git

commit e2c9614bed6f0d008210af8b61a671f8651f55b5
Author: Tomaz Muraus <to...@tomaz.me>
AuthorDate: Thu Dec 8 22:51:25 2022 +0100

    Reformat the code using isort.
---
 libcloud/common/google.py           | 6 +++---
 libcloud/test/common/test_google.py | 4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/libcloud/common/google.py b/libcloud/common/google.py
index 1884ada4f..aa79859db 100644
--- a/libcloud/common/google.py
+++ b/libcloud/common/google.py
@@ -75,7 +75,7 @@ import logging
 import datetime
 import urllib.parse
 from typing import Optional
-from http.server import BaseHTTPRequestHandler, HTTPServer
+from http.server import HTTPServer, BaseHTTPRequestHandler
 
 from libcloud.utils.py3 import b, httplib, urlparse, urlencode
 from libcloud.common.base import BaseDriver, JsonResponse, PollingConnection, ConnectionUserAndKey
@@ -517,8 +517,8 @@ class GoogleInstalledAppAuthConnection(GoogleBaseAuthConnection):
                 self_.send_response(200)
                 self_.send_header("Content-type", "text/html")
                 self_.end_headers()
-                self_.wfile.write("<html><head><title>Libcloud Sign-In</title></head>".encode())
-                self_.wfile.write("<body><p>You can now close this tab</p>".encode())
+                self_.wfile.write(b"<html><head><title>Libcloud Sign-In</title></head>")
+                self_.wfile.write(b"<body><p>You can now close this tab</p>")
 
         if (
             "127.0.0.1" in self.redirect_uri
diff --git a/libcloud/test/common/test_google.py b/libcloud/test/common/test_google.py
index efe3fba74..6f4d2b7d7 100644
--- a/libcloud/test/common/test_google.py
+++ b/libcloud/test/common/test_google.py
@@ -17,10 +17,10 @@ Tests for Google Connection classes.
 """
 import os
 import sys
+import urllib
 import datetime
-import threading
 import unittest
-import urllib
+import threading
 from unittest import mock
 
 import requests