Skip to content

Commit

Permalink
Remove unused imports, align comments
Browse files Browse the repository at this point in the history
  • Loading branch information
guerler committed Nov 30, 2017
1 parent 5e4b76c commit 7c2fab5
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions lib/galaxy/model/__init__.py
Expand Up @@ -12,7 +12,6 @@
import operator
import os
import pwd
import socket
import time
from datetime import datetime, timedelta
from string import Template
Expand All @@ -33,7 +32,7 @@
from galaxy.model.util import pgcalc
from galaxy.security import get_permitted_actions
from galaxy.util import (directory_hash_id, Params, ready_name_for_url,
restore_text, send_mail, unicodify, unique_id)
restore_text, unicodify, unique_id)
from galaxy.util.bunch import Bunch
from galaxy.util.dictifiable import Dictifiable
from galaxy.util.hash_util import new_secure_hash
Expand Down Expand Up @@ -4715,7 +4714,6 @@ class LibraryDatasetCollectionAnnotationAssociation(object):


# Item rating classes.

class ItemRatingAssociation(object):
def __init__(self, id=None, user=None, item=None, rating=0):
self.id = id
Expand Down Expand Up @@ -4763,7 +4761,7 @@ def set_item(self, dataset_collection):
self.dataset_collection = dataset_collection


# Data Manager Classes
# Data manager classes.
class DataManagerHistoryAssociation(object):
def __init__(self, id=None, history=None, user=None):
self.id = id
Expand All @@ -4776,7 +4774,6 @@ def __init__(self, id=None, job=None, data_manager_id=None):
self.id = id
self.job = job
self.data_manager_id = data_manager_id
# end of Data Manager Classes


class UserPreference (object):
Expand All @@ -4803,14 +4800,7 @@ def __init__(self, id=None, user_id=None, key=None):
self.key = key


def copy_list(lst, *args, **kwds):
if lst is None:
return lst
else:
return [el.copy(*args, **kwds) for el in lst]


# Sample request associated class
# Sample request classes.
class Request(object, Dictifiable):
pass

Expand All @@ -4826,6 +4816,7 @@ class ExternalService(object):
class RequestType(object, Dictifiable):
pass


class RequestTypeExternalServiceAssociation(object):
pass

Expand Down Expand Up @@ -4860,3 +4851,10 @@ class RequestTypeRunAssociation(object):

class SampleRunAssociation(object):
pass


def copy_list(lst, *args, **kwds):
if lst is None:
return lst
else:
return [el.copy(*args, **kwds) for el in lst]

0 comments on commit 7c2fab5

Please sign in to comment.