Fix some deprecation warnings

Use 2 (not 1) spaces for indentation.