Skip to content

Commit

Permalink
Remove unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
0x4248 authored May 25, 2022
1 parent 974f448 commit 66c4dc1
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions jsonreg/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,38 +81,32 @@ def data(location,data):
class get:
def name(location):
import json
import os
with open(location) as f:
data = json.load(f)
return data["name"]
def id(location):
import json
import os
with open(location) as f:
data = json.load(f)
return data["id"]
def date_created(location):
import json
import os
with open(location) as f:
data = json.load(f)
return data["date_created"]
def data(location):
import json
import os
with open(location) as f:
data = json.load(f)
return data["data"]
def created(location):
import json
import os
with open(location) as f:
data = json.load(f)
return data["data_created"]
def modified(location):
import json
import os
with open(location) as f:
data = json.load(f)
return data["last_modified"]


0 comments on commit 66c4dc1

Please sign in to comment.