package com.jetbrains.python;

import com.intellij.openapi.fileTypes.FileType;
import com.intellij.openapi.fileTypes.FileTypeFactory;
import com.intellij.util.PairConsumer;
import org.jetbrains.annotations.NonNls;
import org.jetbrains.annotations.NotNull;

/**
 * @author yole
 */
public class PythonFileTypeFactory extends FileTypeFactory {
  public void createFileTypes(@NonNls @NotNull final PairConsumer<FileType, String> consumer) {
    consumer.consume(PythonFileType.INSTANCE, "py");
  }
}

@@ -70,16 +70,24 @@
 FileType
+Consumer
 ;%0Aimport
@@ -139,47 +139,8 @@
 ry;%0A
-import com.intellij.util.PairConsumer;%0A
 impo
@@ -361,38 +361,24 @@
 nal 
-PairConsumer%3CFileType, String%3E
+FileTypeConsumer
  con

refactor FileTypeFactory API; associate Rakefile with Ruby file type by default (RUBY-1756)