Code Duplication    Length = 9-9 lines in 2 locations

tw_serverinfo/game_servers.py 2 locations

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