summaryrefslogtreecommitdiff
path: root/dealconvert/formats/cds.py
diff options
context:
space:
mode:
Diffstat (limited to 'dealconvert/formats/cds.py')
-rw-r--r--dealconvert/formats/cds.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/dealconvert/formats/cds.py b/dealconvert/formats/cds.py
index 4c2a15a..f624612 100644
--- a/dealconvert/formats/cds.py
+++ b/dealconvert/formats/cds.py
@@ -1,3 +1,5 @@
+import warnings
+
from . import DealFormat
from .rzd import RZDFormat
from .. import dto
@@ -16,7 +18,7 @@ class CDSFormat(DealFormat):
data = content.read(14)
if len(data) < 14:
if len(data) != 0:
- print 'WARNING: .cds data truncated: %s' % (data)
+ warnings.warn('.cds data truncated: %s' % (data))
break
deal = dto.Deal()
deal.number = ord(data[0])