summaryrefslogtreecommitdiff
path: root/flake8/compat.py
diff options
context:
space:
mode:
Diffstat (limited to 'flake8/compat.py')
-rw-r--r--flake8/compat.py12
1 files changed, 0 insertions, 12 deletions
diff --git a/flake8/compat.py b/flake8/compat.py
deleted file mode 100644
index 9bd00a7..0000000
--- a/flake8/compat.py
+++ /dev/null
@@ -1,12 +0,0 @@
-# -*- coding: utf-8 -*-
-"""Compatibility shims for Flake8."""
-import os.path
-import sys
-
-
-def relpath(path, start='.'):
- """Wallpaper over the differences between 2.6 and newer versions."""
- if sys.version_info < (2, 7) and path.startswith(start):
- return path[len(start):]
- else:
- return os.path.relpath(path, start=start)