From 37a9bb66f191b8c20aab735391dfb18310651f68 Mon Sep 17 00:00:00 2001 From: joo Date: Tue, 15 Nov 2016 00:02:02 +0000 Subject: [PATCH] Fix test failures caused by new flake8 version. --- minecraft/networking/types.py | 1 + setup.py | 1 + tests/test_authentication.py | 1 + 3 files changed, 3 insertions(+) diff --git a/minecraft/networking/types.py b/minecraft/networking/types.py index cc71680..21c61fc 100644 --- a/minecraft/networking/types.py +++ b/minecraft/networking/types.py @@ -110,6 +110,7 @@ class VarInt(Type): if value < max_value: return size + # Maps (maximum integer value -> size of VarInt in bytes) VARINT_SIZE_TABLE = { 2 ** 7: 1, diff --git a/setup.py b/setup.py index 6f79f9e..4d0c49b 100644 --- a/setup.py +++ b/setup.py @@ -9,6 +9,7 @@ def read(filename): with open(filename, "r") as f: return f.read() + MAIN_AUTHORS = ["Ammar Askar ", "Jeppe Klitgaard "] diff --git a/tests/test_authentication.py b/tests/test_authentication.py index a6b3f0f..0b679e2 100644 --- a/tests/test_authentication.py +++ b/tests/test_authentication.py @@ -42,6 +42,7 @@ def get_mc_credentials(): except IOError: return (None, None) + username, password = get_mc_credentials()