Permalink
Browse files

Fixed import rules

  • Loading branch information...
1 parent b7279e7 commit 4743759d3d8a0e9f74dc5bff72c48da1feedc0b1 @bnmrrs committed Aug 9, 2010
Showing with 13 additions and 11 deletions.
  1. +2 −2 demos/getdistance.py
  2. +4 −2 runkeeper/__init__.py
  3. +2 −2 runkeeper/activity.py
  4. +2 −2 runkeeper/httpclient.py
  5. +2 −2 runkeeper/user.py
  6. +1 −1 setup.py
@@ -1,6 +1,6 @@
-import runkeeper.user
+from runkeeper import User
-user = runkeeper.user.User("bnmrrs")
+user = User("bnmrrs")
activities = user.get_all_activities()
total_distance = 0
@@ -30,9 +30,9 @@
Here is the basic example of getting total distance for a user
- import runkeeper.user
+ from runkeeper import User
- user = runkeeper.user.User("bnmrrs")
+ user = User("bnmrrs")
activities = user.get_all_activities()
total_distance = 0
@@ -42,4 +42,6 @@
print total_distance
"""
+from runkeeper import User
+
@@ -30,9 +30,9 @@
Here is the basic example of getting total distance for a user
- import runkeeper.user
+ from runkeeper import User
- user = runkeeper.user.User("bnmrrs")
+ user = User("bnmrrs")
activities = user.get_all_activities()
total_distance = 0
@@ -30,9 +30,9 @@
Here is the basic example of getting total distance for a user
- import runkeeper.user
+ from runkeeper import User
- user = runkeeper.user.User("bnmrrs")
+ user = User("bnmrrs")
activities = user.get_all_activities()
total_distance = 0
View
@@ -30,9 +30,9 @@
Here is the basic example of getting total distance for a user
- import runkeeper.user
+ from runkeeper import User
- user = runkeeper.user.User("bnmrrs")
+ user = User("bnmrrs")
activities = user.get_all_activities()
total_distance = 0
View
@@ -34,7 +34,7 @@
distutils.core.setup(
name="runkeeper-api",
- version="0.1",
+ version="0.2",
packages = ["runkeeper"],
author="Ben Morris",
author_email="ben@bnmrrs.com",

0 comments on commit 4743759

Please sign in to comment.