File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#!/usr/bin/env python
22# -*- coding: utf-8 -*-
33
4- from uszipcode .data import (
5- DB_FILE , STATE_ABBR_SHORT_TO_LONG , STATE_ABBR_LONG_TO_SHORT )
6- from uszipcode .packages .haversine import great_circle
7- from uszipcode .packages .fuzzywuzzy .process import extractOne
8- from collections import OrderedDict
9- from heapq import *
10- import sqlite3
11- import math
124import json
5+ import math
6+ import sqlite3
7+ from heapq import *
8+ from collections import OrderedDict
9+
10+ try :
11+ from .data import (
12+ DB_FILE , STATE_ABBR_SHORT_TO_LONG , STATE_ABBR_LONG_TO_SHORT )
13+ except :
14+ from uszipcode .data import (
15+ DB_FILE , STATE_ABBR_SHORT_TO_LONG , STATE_ABBR_LONG_TO_SHORT )
16+ try :
17+ from .packages .haversine import great_circle
18+ except :
19+ from uszipcode .packages .haversine import great_circle
20+ try :
21+ from .packages .fuzzywuzzy .process import extractOne
22+ except :
23+ from uszipcode .packages .fuzzywuzzy .process import extractOne
1324
1425
1526class Zipcode (object ):
You can’t perform that action at this time.
0 commit comments