Skip to content

Commit

Permalink
gist change url for serials when it is updated
Browse files Browse the repository at this point in the history
  • Loading branch information
ebrahimraeyat committed Nov 10, 2019
1 parent ac0ad53 commit 34ace36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion civiltools.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def git_updates(self):

def serial_number(serial):
import urllib.request
url = 'https://gist.githubusercontent.com/ebrahimraeyat/1ca5731b3761a3c9c47147d4d3b482d1/raw/1176d09330f834d14b3fb86faef0337b2a371ab3/civiltools.txt'
url = 'https://gist.githubusercontent.com/ebrahimraeyat/1ca5731b3761a3c9c47147d4d3b482d1/raw'
response = urllib.request.urlopen(url)
data = response.read() # a `bytes` object
text = data.decode('utf-8')
Expand Down

0 comments on commit 34ace36

Please sign in to comment.