Permalink
Browse files

unused imports

  • Loading branch information...
1 parent b7a6560 commit 561569e8238aa07b589216fc1234cbe7d544b6b2 Ilan Schnell committed Feb 11, 2012
Showing with 1 addition and 3 deletions.
  1. +0 −1 bsdiff4/format.py
  2. +1 −2 setup.py
View
@@ -4,7 +4,6 @@
is_py3k = bool(sys.version_info[0] == 3)
if is_py3k:
- import io
from io import BytesIO as StringIO
MAGIC = bytes('BSDIFF40'.encode('latin1'))
else:
View
@@ -1,5 +1,4 @@
import re
-import sys
from os.path import join
try:
from setuptools import setup, Extension
@@ -11,7 +10,7 @@
kwds['long_description'] = open('README.rst').read()
-# Read version from core/__init__.py
+# Read version from bsdiff/__init__.py
pat = re.compile(r'__version__\s*=\s*(\S+)', re.M)
data = open(join('bsdiff4', '__init__.py')).read()
kwds['version'] = eval(pat.search(data).group(1))

0 comments on commit 561569e

Please sign in to comment.