Fix syntax error in BaseAdapter.py