File: remove-random2.patch

package info (click to toggle)
python-pysol-cards 0.16.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 272 kB
  • sloc: python: 833; makefile: 5
file content (49 lines) | stat: -rw-r--r-- 1,402 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
--- a/pysol_cards/random.py
+++ b/pysol_cards/random.py
@@ -11,7 +11,7 @@
 from pysol_cards.cards import ms_rearrange
 from pysol_cards.random_base import RandomBase
 
-import random2
+import random as random2
 
 
 class PysolRandom(RandomBase):
--- a/setup.py
+++ b/setup.py
@@ -29,7 +29,6 @@
                    ],
       packages=find_packages(exclude=('tests', 'tests.*')),
       include_package_data=True,
-      install_requires=['random2','six'],
       entry_points={
           'console_scripts': [
               'pysol_cards = pysol_cards.__main__:main',
--- a/pysol_cards/deal_game.py
+++ b/pysol_cards/deal_game.py
@@ -13,7 +13,6 @@
 from pysol_cards.cards import createCards
 from pysol_cards.random import shuffle
 
-from six import print_
 
 
 def empty_card():
@@ -170,7 +169,7 @@
         return self.board.calc_string(renderer)
 
     def print_layout(self, renderer):
-        print_(self.calc_layout_string(renderer), sep='', end='')
+        print(self.calc_layout_string(renderer), sep='', end='')
 
     def new_cards(self, cards):
         self.cards = cards
@@ -304,7 +303,7 @@
     def der_katz(game):
         is_ds = game.game_id == 'die_schlange'
         if is_ds:
-            print_('Foundations: H-A S-A D-A C-A H-A S-A D-A C-A')
+            print('Foundations: H-A S-A D-A C-A H-A S-A D-A C-A')
         game.board = Board(9)
         i = 0
         for c in game: