Commit a403b9b5 authored by Wolfgang Rohdewald's avatar Wolfgang Rohdewald
Browse files

pylint: fix import order

parent 827be4e1
......@@ -21,8 +21,6 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
import datetime
import weakref
import os
if os.name != 'nt':
import resource
from collections import defaultdict
from functools import total_ordering
......@@ -42,6 +40,9 @@ from move import Move
from player import Players, Player, PlayingPlayer
from animation import animateAndDo, AnimationSpeed
if os.name != 'nt':
import resource
@total_ordering
class HandId(StrMixin):
......
......@@ -22,8 +22,6 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
from __future__ import print_function
import signal
signal.signal(signal.SIGINT, signal.SIG_DFL)
import os
import sys
import subprocess
......@@ -38,6 +36,8 @@ from common import Debug, StrMixin, cacheDir
from util import removeIfExists, gitHead, checkMemory
from util import Csv, CsvWriter, popenReadlines
signal.signal(signal.SIGINT, signal.SIG_DFL)
# fields in row:
RULESETFIELD = 0
AIFIELD = 1
......
......@@ -31,13 +31,10 @@ import subprocess
import getpass
import webbrowser
import codecs
if os.name != 'nt':
import pwd
import weakref
from collections import defaultdict
from argparse import ArgumentParser
try:
from PyQt5 import sip
except ImportError:
......@@ -58,6 +55,9 @@ from common import Internal, isAlive
from util import popenReadlines
from statesaver import StateSaver
if os.name != 'nt':
import pwd
__all__ = ['KAboutData', 'KApplication', 'KCmdLineArgs', 'KConfig',
'KCmdLineOptions',
'KMessageBox', 'KConfigSkeleton', 'KDialogButtonBox',
......
......@@ -25,10 +25,7 @@ O'Reilly Media, Inc., ISBN 0-596-10032-9
import os
import random
import traceback
if os.name != 'nt':
import resource
from itertools import chain
from twisted.spread import pb
from common import Debug, Internal, StrMixin
......@@ -49,6 +46,10 @@ from servercommon import srvError
from user import User
from game import PlayingGame
if os.name != 'nt':
import resource
class ServerGame(PlayingGame):
"""the central game instance on the server"""
......@@ -895,4 +896,3 @@ class ServerTable(Table, StrMixin):
block.tellOthers(player, command, **kwargs)
block.callback(callback)
return block
......@@ -24,8 +24,6 @@ import subprocess
import datetime
from io import BytesIO
from hashlib import md5
if os.name == 'nt':
import winsound # pylint: disable=import-error
from common import Debug, Internal, StrMixin, cacheDir
from util import which, removeIfExists, uniqueList, elapsedSince
......@@ -45,6 +43,9 @@ from tile import Tile
# self.audio.enqueue(Phonon.MediaSource(wavName))
# self.audio.play()
if os.name == 'nt':
import winsound # pylint: disable=import-error
class Sound:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment