Skip to content

Commit

Permalink
Change print statements to warning statements
Browse files Browse the repository at this point in the history
  • Loading branch information
miker985 committed Jan 8, 2018
1 parent 8d9d071 commit fc1113d
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions simpledbf/simpledbf.py
Original file line number Diff line number Diff line change
@@ -1,22 +1,26 @@
import struct
import codecs
import datetime
import os
import codecs
import struct
import warnings

# Check for optional dependencies.
try:
import pandas as pd
except:
print("Pandas is not installed. No support for DataFrames, HDF, or SQL.")
warnings.warn(
"Pandas is not installed. No support for DataFrames, HDF, or SQL.")
else:
try:
import tables as tb
except:
print("PyTables is not installed. No support for HDF output.")
warnings.warn(
"PyTables is not installed. No support for HDF output.")
try:
import sqlalchemy as sql
except:
print("SQLalchemy is not installed. No support for SQL output.")
warnings.warn(
"SQLalchemy is not installed. No support for SQL output.")

sqltypes = {
'sqlite': {'str':'TEXT', 'float':'REAL', 'int': 'INTEGER',
Expand Down

0 comments on commit fc1113d

Please sign in to comment.