Use black with -l 120 param.

This commit is contained in:
grossmj committed 2021-04-13 18:46:50 +09:30
1 parent f928738bd5
commit c021e21309
194 files changed
+6034 -4564

No files matched your search

+4 -2
View File
@@ -35,12 +35,13 @@ import types
# To avoid strange bug later we switch the event loop before any other operation
if sys.platform.startswith("win"):
import asyncio
# use the Proactor event loop on Windows
loop = asyncio.ProactorEventLoop()
asyncio.set_event_loop(loop)
if sys.platform.startswith("win"):
sys.modules['termios'] = types.ModuleType('termios')
sys.modules["termios"] = types.ModuleType("termios")
def daemonize():
@@ -80,8 +81,9 @@ def main():
if "--daemon" in sys.argv:
daemonize()
from gns3server.server import Server
Server().run()
if __name__ == '__main__':
if __name__ == "__main__":
main()