pkulev / xoinvader

Python space game in terminal
http://mmap.me
MIT License
12 stars 1 forks source link

sound: fix pygame import when no pygame installed #35

Closed pkulev closed 7 years ago

pkulev commented 7 years ago

Closes issue(s): [ ]

Description of the changes:

Class variables assignment executes on import time, I prevented importing pygame if it no needed everywhere except this place, now it fixed.

Reviewers: [ @taptap ]

Task list:

codecov-io commented 7 years ago

Current coverage is 43.38% (diff: 0.00%)

Merging #35 into master will decrease coverage by 0.10%

@@             master        #35   diff @@
==========================================
  Files            34         34          
  Lines          1336       1337     +1   
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
- Hits            581        580     -1   
- Misses          755        757     +2   
  Partials          0          0          

Powered by Codecov. Last update 36af29d...7910f4e