Skip to content

Commit

Permalink
Fixed printing
Browse files Browse the repository at this point in the history
  • Loading branch information
geduldig committed Jun 26, 2013
1 parent f84d5e3 commit 1f07baa
Show file tree
Hide file tree
Showing 8 changed files with 50 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,5 @@ v1.1.1, 19 Feb 2013 -- Geocoder uses viewport instead of bounds.
v2.0.1, 14 Jun 2013 -- Switch to TwitterAPI and renamed to TwitterGeoPics

v2.0.2, 14 Jun 2013 -- Included pygeocoder source until fixed for python 3

v2.0.3, 25 Jun 2013 -- Fixed printing.
2 changes: 2 additions & 0 deletions MANIFEST
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ TwitterGeoPics/GetNewPics.py
TwitterGeoPics/GetOldGeo.py
TwitterGeoPics/GetOldPics.py
TwitterGeoPics/__init__.py
TwitterGeoPics/pygeocoder.py
TwitterGeoPics/pygeolib.py
11 changes: 11 additions & 0 deletions TwitterGeoPics/GetNewGeo.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,22 @@
__license__ = "MIT"

import argparse
import codecs
from Geocoder import Geocoder
import sys
from TwitterAPI import TwitterAPI, TwitterOAuth


try:
# python 3
sys.stdout = codecs.getwriter('utf8')(sys.stdout.buffer)
sys.stderr = codecs.getwriter('utf8')(sys.stderr.buffer)
except:
# python 2
sys.stdout = codecs.getwriter('utf8')(sys.stdout)
sys.stderr = codecs.getwriter('utf8')(sys.stderr)


GEO = Geocoder()


Expand Down
11 changes: 11 additions & 0 deletions TwitterGeoPics/GetNewPics.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,24 @@
__license__ = "MIT"

import argparse
import codecs
from Geocoder import Geocoder
import os
import sys
from TwitterAPI import TwitterAPI, TwitterOAuth
import urllib


try:
# python 3
sys.stdout = codecs.getwriter('utf8')(sys.stdout.buffer)
sys.stderr = codecs.getwriter('utf8')(sys.stderr.buffer)
except:
# python 2
sys.stdout = codecs.getwriter('utf8')(sys.stdout)
sys.stderr = codecs.getwriter('utf8')(sys.stderr)


GEO = Geocoder()


Expand Down
11 changes: 11 additions & 0 deletions TwitterGeoPics/GetOldGeo.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,22 @@
__license__ = "MIT"

import argparse
import codecs
from Geocoder import Geocoder
import sys
from TwitterAPI import TwitterAPI, TwitterOAuth, TwitterRestPager


try:
# python 3
sys.stdout = codecs.getwriter('utf8')(sys.stdout.buffer)
sys.stderr = codecs.getwriter('utf8')(sys.stderr.buffer)
except:
# python 2
sys.stdout = codecs.getwriter('utf8')(sys.stdout)
sys.stderr = codecs.getwriter('utf8')(sys.stderr)


GEO = Geocoder()


Expand Down
11 changes: 11 additions & 0 deletions TwitterGeoPics/GetOldPics.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,24 @@
__license__ = "MIT"

import argparse
import codecs
from Geocoder import Geocoder
import os
import sys
from TwitterAPI import TwitterAPI, TwitterOAuth, TwitterRestPager
import urllib


try:
# python 3
sys.stdout = codecs.getwriter('utf8')(sys.stdout.buffer)
sys.stderr = codecs.getwriter('utf8')(sys.stderr.buffer)
except:
# python 2
sys.stdout = codecs.getwriter('utf8')(sys.stdout)
sys.stderr = codecs.getwriter('utf8')(sys.stderr)


GEO = Geocoder()


Expand Down
2 changes: 1 addition & 1 deletion TwitterGeoPics/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
__title__ = 'TwitterGeoPics'
__version__ = '2.0.1'
__version__ = '2.0.3'
__author__ = 'Jonas Geduldig'
__license__ = 'MIT'
__copyright__ = 'Copyright 2013 Jonas Geduldig'
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name='TwitterGeoPics',
version='2.0.2',
version='2.0.3',
author='Jonas Geduldig',
author_email='[email protected]',
packages=['TwitterGeoPics'],
Expand Down

0 comments on commit 1f07baa

Please sign in to comment.