Permalink
Browse files

Moving things around a little bit working on the setup.py

  • Loading branch information...
1 parent 06fc56a commit 1c051d0a1728d713f03c1fc5761d5e82c304290c @thedjpetersen committed Aug 4, 2011
Showing with 5 additions and 0 deletions.
  1. 0 pygithub/__init__.py
  2. +5 −0 pygithub/auth.py
View
No changes.
View
@@ -0,0 +1,5 @@
+from base64 import encodestring as base64
+
+def encode_auth(username, password):
+ auth = base64('%s:%s' % (username, password)).replace('\n', '')
+ return auth

0 comments on commit 1c051d0

Please sign in to comment.