Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Games
Kajongg
Commits
a403b9b5
Commit
a403b9b5
authored
Oct 25, 2017
by
Wolfgang Rohdewald
Browse files
pylint: fix import order
parent
827be4e1
Changes
5
Hide whitespace changes
Inline
Side-by-side
src/game.py
View file @
a403b9b5
...
...
@@ -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
):
...
...
src/kajonggtest.py
View file @
a403b9b5
...
...
@@ -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
...
...
src/kdestub.py
View file @
a403b9b5
...
...
@@ -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'
,
...
...
src/servertable.py
View file @
a403b9b5
...
...
@@ -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
src/sound.py
View file @
a403b9b5
...
...
@@ -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
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment