8000 Python 3 compatibility by kevin-brown · Pull Request #5 · gitpython-developers/gitdb · GitHub
[go: up one dir, main page]

Skip to content

Python 3 compatibility #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 17 commits into from
Closed
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
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ python:
- "2.6"
- "2.7"
- "3.3"
- "3.4"
# - "pypy" - won't work as smmap doesn't work (see smmap/.travis.yml for details)

script: nosetests
11 changes: 5 additions & 6 deletions gitdb/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ def _init_externals():
"""Initialize external projects by putting them into the path"""
for module in ('async', 'smmap'):
sys.path.append(os.path.join(os.path.dirname(__file__), 'ext', module))

try:
__import__(module)
except ImportError:
raise ImportError("'%s' could not be imported, assure it is located in your PYTHONPATH" % module)
#END verify import
#END handel imports

#} END initialization

_init_externals()
Expand All @@ -32,7 +32,6 @@ def _init_externals():


# default imports
from db import *
from base import *
from stream import *

from gitdb.base import *
from gitdb.db import *
from gitdb.stream import *
Loading
0