Code Duplication    Length = 9-9 lines in 2 locations

tw_serverinfo/game_servers.py 2 locations

@@ 200-208 (lines=9) @@
197
        slots.popleft()
198
199
        server.server_type = 'ext+'
200
        while len(slots) >= 6:
201
            # no idea what this is, always empty
202
            slots.popleft()
203
            server.append_player(Player(
204
                name=slots.popleft().decode('utf-8'),
205
                clan=slots.popleft().decode('utf-8'),
206
                country=int(slots.popleft().decode('utf-8')),
207
                score=int(slots.popleft().decode('utf-8')),
208
                ingame=bool(int(slots.popleft().decode('utf-8')))
209
            ))
210
@@ 178-186 (lines=9) @@
175
        server.num_clients = int(slots.popleft().decode('utf-8'))
176
        server.max_clients = int(slots.popleft().decode('utf-8'))
177
178
        while len(slots) >= 6:
179
            # no idea what this is, always empty
180
            slots.popleft()
181
            server.append_player(Player(
182
                name=slots.popleft().decode('utf-8'),
183
                clan=slots.popleft().decode('utf-8'),
184
                country=int(slots.popleft().decode('utf-8')),
185
                score=int(slots.popleft().decode('utf-8')),
186
                ingame=bool(int(slots.popleft().decode('utf-8')))
187
            ))
188
189
    @staticmethod