Skip to content
This repository was archived by the owner on Sep 25, 2020. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
100 changes: 100 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
env/
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
*.egg-info/
.installed.cfg
*.egg

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*,cover
.hypothesis/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# IPython Notebook
.ipynb_checkpoints

# pyenv
.python-version

# celery beat schedule file
celerybeat-schedule

# dotenv
.env

# virtualenv
venv/
ENV/

# Spyder project settings
.spyderproject

# Rope project settings
.ropeproject

#2to3 files
*.bak

#patch outputs
*.orig
*.rej

#vi & vim swaps
*.swp
*.swo
6 changes: 3 additions & 3 deletions Makefile.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def make(self):
# Don't (yet) support Python 3.
continue
ver_str = "%s.%s" % ver
print "-- test with Python %s (%s)" % (ver_str, python)
print("-- test with Python %s (%s)" % (ver_str, python))
assert ' ' not in python
sh.run_in_dir("%s test.py" % python,
join(self.dir, "test"))
Expand Down Expand Up @@ -220,7 +220,7 @@ def make(self):

path = join(self.dir, "TO""DO.txt")
todos = re.compile("^- ", re.M).findall(open(path, 'r').read())
print "(plus %d TODOs from TO""DO.txt)" % len(todos)
print("(plus %d TODOs from TO""DO.txt)" % len(todos))

def _dump_pattern_in_path(self, pattern, path):
os.system("grep -nH '%s' '%s'" % (pattern, path))
Expand Down Expand Up @@ -372,7 +372,7 @@ def _paths_from_path_patterns(path_patterns, files=True, dirs="never",
from os.path import basename, exists, isdir, join
from glob import glob

assert not isinstance(path_patterns, basestring), \
assert not isinstance(path_patterns, str), \
"'path_patterns' must be a sequence, not a string: %r" % path_patterns
GLOB_CHARS = '*?['

Expand Down
Loading