mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
PEP 8 clean thanks to auto pep8
This commit is contained in:
1 parent
7f185663d1
commit
f5ed9fbcf1
124 files changed
+340
-210
No files matched your search
@@ -36,6 +36,7 @@ from gns3server.modules.project_manager import ProjectManager
|
||||
|
||||
|
||||
class Query:
|
||||
|
||||
def __init__(self, loop, host='localhost', port=8001):
|
||||
self._loop = loop
|
||||
self._port = port
|
||||
|
||||
@@ -20,6 +20,7 @@ from unittest.mock import patch
|
||||
|
||||
|
||||
class _asyncio_patch:
|
||||
|
||||
"""
|
||||
A wrapper around python patch supporting asyncio.
|
||||
Like the original patch you can use it as context
|
||||
@@ -29,6 +30,7 @@ class _asyncio_patch:
|
||||
inspiration:
|
||||
https://hg.python.org/cpython/file/3.4/Lib/unittest/mock.py
|
||||
"""
|
||||
|
||||
def __init__(self, function, *args, **kwargs):
|
||||
self.function = function
|
||||
self.args = args
|
||||
|
||||
Reference in new issue
Block a user