Permalink
Browse files

Update import statements to work with python 2.4

This further updates the import statements to work with python 2.4.
Brief testing indicates that everything else seems to work correctly now
in 2.4.

I haven't fully thought out plans for which versions of python we want
to support.  Given that there are still plenty of machines running 2.4,
and that the changes needed to support it are minimal, there seems to be
no reason not to do this.
  • Loading branch information...
1 parent 3b67880 commit ecd00d3bdcc13cba8cf79a4b88e5dd5c0fd38cc3 Adam Simpkins committed Feb 6, 2010
@@ -19,7 +19,7 @@
import traceback
from exceptions import *
-from . import tokenize
+import tokenize
# Import everything from our command and args submodules
# into the top-level namespace
@@ -24,11 +24,11 @@
from constants import *
from exceptions import *
-from . import obj
-from . import commit
-from . import config
-from . import diff
-from . import repo
+import obj
+import commit
+import config
+import diff
+import repo
def is_git_dir(path):
@@ -18,7 +18,7 @@
import os
import time
-from .. import proc
+import gitreview.proc as proc
from exceptions import *
import constants
@@ -14,7 +14,7 @@
# License for the specific language governing permissions and limitations
# under the License.
#
-from .. import proc
+import gitreview.proc as proc
from exceptions import *
import constants
@@ -17,7 +17,7 @@
import re
import UserDict
-from .. import proc
+import gitreview.proc as proc
from exceptions import *
import constants
@@ -20,7 +20,7 @@
import subprocess
import tempfile
-from .. import proc
+import gitreview.proc as proc
from exceptions import *
import constants
@@ -17,7 +17,7 @@
import os
import tempfile
-from .. import git
+import gitreview.git as git
from exceptions import *
import cli_reviewer
@@ -17,8 +17,8 @@
import os
import subprocess
-from .. import cli
-from .. import git
+import gitreview.cli as cli
+import gitreview.git as git
from exceptions import *

0 comments on commit ecd00d3

Please sign in to comment.