diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/distutils/tests/test_install.py b/distutils/tests/test_install.py index <HASH>..<HASH> 100644 --- a/distutils/tests/test_install.py +++ b/distutils/tests/test_install.py @@ -56,9 +56,7 @@ class InstallTestCase(support.TempdirManager, expected = os.path.normpath(expected) self.asse...
Refactor as simple replace. If a full string substitution proves to be necessary, let's create a mapping.
py
diff --git a/test/derive/test_derive.py b/test/derive/test_derive.py index <HASH>..<HASH> 100644 --- a/test/derive/test_derive.py +++ b/test/derive/test_derive.py @@ -12,6 +12,7 @@ def test_slidingwindow(): def test_slidingwindow_postpro(): + np.random.seed(2018) X = np.random.multivariate_normal([0, 0], [...
random seed added to test to fix rounding error
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ long_description = ('Django Cloudinary Storage is a Django package that facilita setup( name='django-cloudinary-storage', - version='0.1.6', + version='0.1.7', author='Konrad Lisiczynski', ...
Updated setup.py version to <I>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -10,5 +10,5 @@ setup( author_email='tech@gizmag.com', url='https://github.com/gizmag/django_fsm_log', packages=find_packages(), - install_requires=['django>=1.6', 'south>=1', 'django_fsm>=2', 'django_appconf'...
remove south from install_requires
py
diff --git a/pyramid_orb/utils.py b/pyramid_orb/utils.py index <HASH>..<HASH> 100644 --- a/pyramid_orb/utils.py +++ b/pyramid_orb/utils.py @@ -2,24 +2,10 @@ import orb import projex.rest from projex.text import safe_eval +from pyramid_restful.utils import get_payload DEFAULT_MAX_LIMIT = 1000 -def get_payload(r...
* moved get_payload to pyramid_restful (<I>+)
py
diff --git a/skorch/net.py b/skorch/net.py index <HASH>..<HASH> 100644 --- a/skorch/net.py +++ b/skorch/net.py @@ -159,7 +159,9 @@ class NeuralNet: 'auto', infers the correct nonlinearity based on the criterion (softmax for :class:`~torch.nn.CrossEntropyLoss` and sigmoid for :class:`~torch.nn.BCEWi...
Reviewer comment: Update docstring to warn about lambda and pickle
py
diff --git a/pgmpy/models/NaiveBayesModel.py b/pgmpy/models/NaiveBayesModel.py index <HASH>..<HASH> 100644 --- a/pgmpy/models/NaiveBayesModel.py +++ b/pgmpy/models/NaiveBayesModel.py @@ -212,6 +212,8 @@ class NaiveBayesModel(BayesianModel): >>> model.edges() [('A', 'D'), ('A', 'E'), ('A', 'B'), ('A', ...
adds error case in fit method of NaiveBayes
py
diff --git a/geist/pyplot.py b/geist/pyplot.py index <HASH>..<HASH> 100644 --- a/geist/pyplot.py +++ b/geist/pyplot.py @@ -40,7 +40,7 @@ class Viewer(object): def show_capture(self, wait_time=0): sleep(wait_time) - for location in self._gui.capture_locations(wait_time): + for location ...
Removed argument of wait_time where it was incorrect
py
diff --git a/tests/test_sync.py b/tests/test_sync.py index <HASH>..<HASH> 100644 --- a/tests/test_sync.py +++ b/tests/test_sync.py @@ -318,6 +318,7 @@ class TestIntegrations(object): assert_existence(clients, ['foo'], False) assert_local_keys(clients, ['test', 'bar', 'baz', 'hello']) assert_r...
Add test coverage for previously buggy delete remote timestamp
py
diff --git a/unitTests.py b/unitTests.py index <HASH>..<HASH> 100644 --- a/unitTests.py +++ b/unitTests.py @@ -3526,15 +3526,16 @@ class ParseActionExceptionTest(ParseTestCase): number.setParseAction(number_action) symbol = pp.Word('abcd', max=1) expr = number | symbol - with self.a...
assertRaises not compatible in Py<I>
py
diff --git a/src/qinfer/derived_models.py b/src/qinfer/derived_models.py index <HASH>..<HASH> 100644 --- a/src/qinfer/derived_models.py +++ b/src/qinfer/derived_models.py @@ -36,6 +36,7 @@ __all__ = [ 'DerivedModel', 'PoisonedModel', 'BinomialModel', + 'DifferentiableBinomialModel', 'MultinomialM...
made DifferentiableBinomialModel visible to __all__
py
diff --git a/pyeda/boolalg/expr.py b/pyeda/boolalg/expr.py index <HASH>..<HASH> 100644 --- a/pyeda/boolalg/expr.py +++ b/pyeda/boolalg/expr.py @@ -6,7 +6,6 @@ Interface Functions: exprcomp expr ast2expr - expr2dimacscnf expr2dimacssat upoint2exprpoint
Get rid of reference to expr2dimacscnf
py
diff --git a/pupa/importers/base.py b/pupa/importers/base.py index <HASH>..<HASH> 100644 --- a/pupa/importers/base.py +++ b/pupa/importers/base.py @@ -205,7 +205,6 @@ class BaseImporter(object): # check base object for changes for key, value in data.items(): if getattr(obj, ke...
remove print statement from debugging travis issue
py
diff --git a/src/chisel/__init__.py b/src/chisel/__init__.py index <HASH>..<HASH> 100644 --- a/src/chisel/__init__.py +++ b/src/chisel/__init__.py @@ -6,7 +6,7 @@ Chisel is a light-weight Python WSGI application framework with tools for buildi well-tested, schema-validated JSON web APIs. """ -__version__ = '0.9.106...
chisel <I>
py
diff --git a/src/wa_kat/rest_api/to_output.py b/src/wa_kat/rest_api/to_output.py index <HASH>..<HASH> 100755 --- a/src/wa_kat/rest_api/to_output.py +++ b/src/wa_kat/rest_api/to_output.py @@ -54,6 +54,13 @@ def render_mrc(data): return SimpleTemplate(template_body).render(**data) +def url_to_fn(url): + url =...
#<I>: Normalized URL is now transported back from API to frontend.
py
diff --git a/perch/organisation.py b/perch/organisation.py index <HASH>..<HASH> 100644 --- a/perch/organisation.py +++ b/perch/organisation.py @@ -153,8 +153,9 @@ class Organisation(Document): for x in gen: if cleanString(x['key']) == searchName: org = yield cls.get(x['id']) - ...
get org by name, only if approved
py
diff --git a/src/flapjack/resources.py b/src/flapjack/resources.py index <HASH>..<HASH> 100644 --- a/src/flapjack/resources.py +++ b/src/flapjack/resources.py @@ -213,9 +213,16 @@ class Resource(six.with_metaclass(DeclarativeResource)): """Constructs the URLs that this resource will respond to. """ ...
Added default kwargs to the url definition to assist with reversing the url
py
diff --git a/zipline/errors.py b/zipline/errors.py index <HASH>..<HASH> 100644 --- a/zipline/errors.py +++ b/zipline/errors.py @@ -402,3 +402,15 @@ class UnsupportedDatetimeFormat(ZiplineError): """ msg = ("The input '{input}' passed to '{method}' is not " "coercible to a pandas.Timestamp object."...
MAINT: Removes the ability to reference a global TradingEnvironment This commit removes the ability to reference a shared TradingEnvironment through the zipline.finance.trading module. In place, the classes that require a TradingEnvironment, or its child AssetFinder, contain their own references to those objects. Thi...
py
diff --git a/wpull/conversation.py b/wpull/conversation.py index <HASH>..<HASH> 100644 --- a/wpull/conversation.py +++ b/wpull/conversation.py @@ -8,10 +8,18 @@ import wpull.util class BaseRequest(object, metaclass=abc.ABCMeta): + '''Base class for Requests. + + This class has no purpose yet. + ''' p...
conversation.py: Adds some docstring.
py
diff --git a/pliers/stimuli/remote.py b/pliers/stimuli/remote.py index <HASH>..<HASH> 100644 --- a/pliers/stimuli/remote.py +++ b/pliers/stimuli/remote.py @@ -20,9 +20,7 @@ class RemoteStim(Stim): def __init__(self, url): self.url = url - # This keeps the connection open, which may be bad - ...
closing url in remote stim
py
diff --git a/lib/svtplay_dl/service/viaplay.py b/lib/svtplay_dl/service/viaplay.py index <HASH>..<HASH> 100644 --- a/lib/svtplay_dl/service/viaplay.py +++ b/lib/svtplay_dl/service/viaplay.py @@ -154,7 +154,10 @@ class Viaplay(Service, OpenGraphThumbMixin): subtype = "wrst" else: ...
Viafree: Added SDH subfix to subtitle files when --all-subtitles are used Added support to download both regular and Subtitles for hearing impared( with -SDH subfix), when using --all-subtitles
py
diff --git a/allpairspy/allpairs.py b/allpairspy/allpairs.py index <HASH>..<HASH> 100644 --- a/allpairspy/allpairs.py +++ b/allpairspy/allpairs.py @@ -199,14 +199,15 @@ class AllPairs(object): for item in self.__working_item_matrix[num]: data_node = self.__pairs.get_node_info(item) - ...
Modify list generation method from append to comprehension
py
diff --git a/empirical.py b/empirical.py index <HASH>..<HASH> 100644 --- a/empirical.py +++ b/empirical.py @@ -88,7 +88,9 @@ class Patch: ------- spp_list : ndarray 1D array listing identifiers for species in the same order as they - appear in arrays found in result. + ...
Clarify meaning of spp_list in parse_criteria
py
diff --git a/iotilebuild/config/site_scons/utilities.py b/iotilebuild/config/site_scons/utilities.py index <HASH>..<HASH> 100644 --- a/iotilebuild/config/site_scons/utilities.py +++ b/iotilebuild/config/site_scons/utilities.py @@ -20,7 +20,6 @@ import StringIO sys.path.append(os.path.join(os.path.dirname(__file__), '....
Remove unnecessary dependency with MIB<I>Processor
py
diff --git a/dbt/targets.py b/dbt/targets.py index <HASH>..<HASH> 100644 --- a/dbt/targets.py +++ b/dbt/targets.py @@ -3,7 +3,7 @@ import psycopg2 import os from paramiko import SSHConfig -import ssh_forward +import dbt.ssh_forward THREAD_MIN = 1 THREAD_MAX = 8 @@ -45,7 +45,7 @@ class RedshiftTarget: ...
qualify ssh_forward with dbt prefix
py
diff --git a/worldengine/imex/__init__.py b/worldengine/imex/__init__.py index <HASH>..<HASH> 100644 --- a/worldengine/imex/__init__.py +++ b/worldengine/imex/__init__.py @@ -117,7 +117,7 @@ def export(world, export_filetype = 'GTiff', export_datatype = 'float32', path = # take elevation data and push it into an...
Update __init__.py - resolve Windows error <I> When running export in Windows, errors out: "WindowsError: [Error <I>] The process cannot access the file because it is in use by another process: path_to_temp_file" Flushing (new line <I>) and adding a call to close with the file handle (new line <I>) resolves the err...
py
diff --git a/JustIRC.py b/JustIRC.py index <HASH>..<HASH> 100644 --- a/JustIRC.py +++ b/JustIRC.py @@ -109,6 +109,9 @@ class IRCConnection: def send_message(self, to, message): self.send_line("PRIVMSG {} :{}".format(to, message)) + def send_notice(self, to, message): + self.send_line("NOTICE {...
Added send_notice command.
py
diff --git a/ipa/ipa_ec2.py b/ipa/ipa_ec2.py index <HASH>..<HASH> 100644 --- a/ipa/ipa_ec2.py +++ b/ipa/ipa_ec2.py @@ -136,9 +136,15 @@ class EC2Cloud(IpaCloud): self.secret_access_key = self.ec2_config['secret_access_key'] self.security_group_id = self.ec2_config['security_group_id'] self.ss...
SSH user key in ec2utils config is user. Instead of ssh_user. Split out ssh user config handling to handle both keys.
py
diff --git a/experiments/best-synthetic-data-hyperparams.py b/experiments/best-synthetic-data-hyperparams.py index <HASH>..<HASH> 100755 --- a/experiments/best-synthetic-data-hyperparams.py +++ b/experiments/best-synthetic-data-hyperparams.py @@ -123,8 +123,6 @@ def generate_cross_validation_datasets( ...
evaluate all alleles, not just everything before HLA
py
diff --git a/validator/testcases/targetapplication.py b/validator/testcases/targetapplication.py index <HASH>..<HASH> 100644 --- a/validator/testcases/targetapplication.py +++ b/validator/testcases/targetapplication.py @@ -82,6 +82,10 @@ def test_targetedapplications(err, package_contents=None, # Ensur...
Update for bug <I>: GUID is now app name for recognized IDs
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages setupopts = dict( name="automate", - version='0.9.4', + version='0.9.5.dev0', packages=find_packages('src'), package_dir={'': 'src'}, instal...
Back to development: <I>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -12,9 +12,6 @@ setup( packages = find_packages("src"), package_dir = {"":"src"}, scripts = ["src/db-migrate"], - - install_requires = ["mysql-python>=1.2.2"], - author = "Guilherme Chapiewski", ...
Removed mysql_python dependency. That does not make sense since the project is going to be multi-platform (working on multi DBs).
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ license: GNU-GPL2 from setuptools import setup setup(name='arguments', - version='44', + version='45', description='Argument parser based on docopt', url='https://github.com/erikdejonge...
pip Wednesday <I> May <I> (week:<I> day:<I>), <I>:<I>:<I>
py
diff --git a/djangocms_page_sitemap/__init__.py b/djangocms_page_sitemap/__init__.py index <HASH>..<HASH> 100644 --- a/djangocms_page_sitemap/__init__.py +++ b/djangocms_page_sitemap/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- from __future__ import absolute_import, print_function, unicode_literals -__versi...
Bump develop version [ci skip]
py
diff --git a/salt/grains/disks.py b/salt/grains/disks.py index <HASH>..<HASH> 100644 --- a/salt/grains/disks.py +++ b/salt/grains/disks.py @@ -11,6 +11,7 @@ import re # Import salt libs import salt.utils +import salt.utils.decorators as decorators # Solve the Chicken and egg problem where grains need to run befo...
Cache the VBOX check so we don't have to spawn another camcontrol for each disk
py
diff --git a/acceptancetests/assess_caas_deploy_kubeflow.py b/acceptancetests/assess_caas_deploy_kubeflow.py index <HASH>..<HASH> 100755 --- a/acceptancetests/assess_caas_deploy_kubeflow.py +++ b/acceptancetests/assess_caas_deploy_kubeflow.py @@ -324,7 +324,8 @@ def prepare(caas_client, caas_provider, build): caas...
Reset in kubeflow dir;
py
diff --git a/phoebe/backend/universe.py b/phoebe/backend/universe.py index <HASH>..<HASH> 100644 --- a/phoebe/backend/universe.py +++ b/phoebe/backend/universe.py @@ -1504,10 +1504,13 @@ class Star(Body): # their normals, vnormals applies to both vertices and # pvertices. ...
implemented libphoebe's curvature dependent offsetting in backend currently is always enabled, in the future may want to provide switch or disable for spherical stars
py
diff --git a/ddmrp_history/models/stock_buffer.py b/ddmrp_history/models/stock_buffer.py index <HASH>..<HASH> 100644 --- a/ddmrp_history/models/stock_buffer.py +++ b/ddmrp_history/models/stock_buffer.py @@ -59,8 +59,8 @@ class StockBuffer(models.Model): } return data - def cron_actions(self): - ...
[<I>][UPD] ddmrp_history: update method signature.
py
diff --git a/bit/utils.py b/bit/utils.py index <HASH>..<HASH> 100644 --- a/bit/utils.py +++ b/bit/utils.py @@ -97,9 +97,13 @@ def get_signatures_from_script(script): return int(bytes_to_hex(script[pos[0]-bytez:pos[0]][::-1]), base=16) val = read_var_int() - while val <= 72: # TODO: Make a better che...
Bugfix when extracting signatures from partially signed tx Make some better checks to validate signatures extracted from partially signed transactions.
py
diff --git a/auto_ml/predictor.py b/auto_ml/predictor.py index <HASH>..<HASH> 100644 --- a/auto_ml/predictor.py +++ b/auto_ml/predictor.py @@ -1042,7 +1042,7 @@ class Predictor(object): 'relevant_transformed_rows': [] , 'relevant_y': [] } - for pair in sorted(categories_and_ind...
sorts categorical_ensembling categories in biggest order first, for slight efficiency gains
py
diff --git a/dusty/systems/virtualbox/__init__.py b/dusty/systems/virtualbox/__init__.py index <HASH>..<HASH> 100644 --- a/dusty/systems/virtualbox/__init__.py +++ b/dusty/systems/virtualbox/__init__.py @@ -64,6 +64,9 @@ def _stop_docker_vm(): def _get_vm_config(): return check_output_demoted(['VBoxManage', 'show...
I failed at rebase, I shame my ancestors
py
diff --git a/moult/filesystem_scanner.py b/moult/filesystem_scanner.py index <HASH>..<HASH> 100644 --- a/moult/filesystem_scanner.py +++ b/moult/filesystem_scanner.py @@ -102,7 +102,10 @@ def scan_file(pym, filename, sentinel, installed): # import name scan_filename = utils.file_containing_imp...
Only do a directory scan for related files that end with '__init__.py'
py
diff --git a/sos/plugins/etcd.py b/sos/plugins/etcd.py index <HASH>..<HASH> 100644 --- a/sos/plugins/etcd.py +++ b/sos/plugins/etcd.py @@ -55,6 +55,7 @@ class etcd(Plugin, RedHatPlugin): self.add_cmd_output(['curl -s %s%s' % (etcd_url, u) for u in urls]) self.add_cmd_output("ls -lR /var/lib/etcd...
[etcd] Include journal Resolves: #<I>
py
diff --git a/helusers/user_utils.py b/helusers/user_utils.py index <HASH>..<HASH> 100644 --- a/helusers/user_utils.py +++ b/helusers/user_utils.py @@ -115,7 +115,7 @@ def get_or_create_user(payload, oidc=False): if not is_valid_uuid(user_id): # Maybe we have an Azure pairwise ID? Check for Azure tenant ID...
Do not convert tid to uuid.UUID. It will be converted later
py
diff --git a/napalm_fortios/fortios.py b/napalm_fortios/fortios.py index <HASH>..<HASH> 100644 --- a/napalm_fortios/fortios.py +++ b/napalm_fortios/fortios.py @@ -16,12 +16,15 @@ from __future__ import unicode_literals import re from pyFG.fortios import FortiOS, FortiConfig, logger from pyFG.exceptions import Failed...
Added import to include new NetworkDriver location in napalm <I>+
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -7,12 +7,12 @@ try: ext_modules = cythonize("wallpaper/_natives.pyx") except ImportError: ext_modules = [ - Extension("wallpaper._natives", ["wallpaper._natives.c"]), + Extension("wallpaper._natives", ...
Further tinkering with distributing cython
py
diff --git a/src/common.py b/src/common.py index <HASH>..<HASH> 100644 --- a/src/common.py +++ b/src/common.py @@ -32,7 +32,7 @@ def gridEngineIsInstalled(): """Returns True if grid-engine is installed, else False. """ try: - return system("qstat -version") == 0 + return system("qstat -help...
Fix to function to check if grid engine is present
py
diff --git a/crosscat/utils/plot_utils.py b/crosscat/utils/plot_utils.py index <HASH>..<HASH> 100644 --- a/crosscat/utils/plot_utils.py +++ b/crosscat/utils/plot_utils.py @@ -28,11 +28,11 @@ import crosscat.utils.general_utils as gu import crosscat.utils.file_utils as fu -def my_savefig(filename, dir='./', close=T...
use pylab's method of passing format
py
diff --git a/src/colab_gitlab/views.py b/src/colab_gitlab/views.py index <HASH>..<HASH> 100644 --- a/src/colab_gitlab/views.py +++ b/src/colab_gitlab/views.py @@ -5,3 +5,6 @@ from colab.plugins.views import ColabProxyView class GitlabProxyView(ColabProxyView): app_label = 'colab_gitlab' diazo_theme_template ...
Block users from updating their gitlab passwords manually
py
diff --git a/docs/conf.py b/docs/conf.py index <HASH>..<HASH> 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -62,7 +62,7 @@ source_suffix = '.rst' # The encoding of source files. #source_encoding = 'utf-8-sig' -# The master toctree document. +# The main toctree document (using required variable name). master_doc ...
DOC: updated internal comment Updated internal comment to explain presence of offensive variable name.
py
diff --git a/python/ray/experimental/data/tests/test_dataset.py b/python/ray/experimental/data/tests/test_dataset.py index <HASH>..<HASH> 100644 --- a/python/ray/experimental/data/tests/test_dataset.py +++ b/python/ray/experimental/data/tests/test_dataset.py @@ -1141,4 +1141,4 @@ def test_sort_arrow(ray_start_regular_s...
[hotfix] Dataset tests accidentally disabled
py
diff --git a/doac/managers.py b/doac/managers.py index <HASH>..<HASH> 100644 --- a/doac/managers.py +++ b/doac/managers.py @@ -52,6 +52,9 @@ class AuthorizationCodeQuerySet(QuerySet): def is_active(self): return self.filter(is_active=True) + + def with_expiration_before(self, date): + retu...
Added three missing filters, renamed one
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -13,21 +13,21 @@ with open('LICENSE') as f: version = '0.0.2' setup( - name='viper', + name='vyper', version=version, description='Viper Programming Language for Ethereum', long_description=readme, ...
Rename to vyper in setup.py as well
py
diff --git a/src/scs_core/control/control_receipt.py b/src/scs_core/control/control_receipt.py index <HASH>..<HASH> 100644 --- a/src/scs_core/control/control_receipt.py +++ b/src/scs_core/control/control_receipt.py @@ -63,9 +63,7 @@ class ControlReceipt(JSONable): @classmethod def __hash(cls, tag, rec, comm...
Added milliseconds control to LocalizedDatetime class.
py
diff --git a/zipline/gens/tradesimulation.py b/zipline/gens/tradesimulation.py index <HASH>..<HASH> 100644 --- a/zipline/gens/tradesimulation.py +++ b/zipline/gens/tradesimulation.py @@ -12,7 +12,7 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific languag...
MAINT: Pull initialization of simulation dt out of event loop. Fakes a 'peek' into the data stream, so that the 'do we have a simulation_dt?' check isn't called on each leoop iteration.
py
diff --git a/cirq/protocols/resolve_parameters.py b/cirq/protocols/resolve_parameters.py index <HASH>..<HASH> 100644 --- a/cirq/protocols/resolve_parameters.py +++ b/cirq/protocols/resolve_parameters.py @@ -137,7 +137,7 @@ def resolve_parameters( Returns: a gate or operation of the same type, but with all...
Remove bad delete char from docstring (#<I>) Can't see in the diff, but there was an errant delete character in the docstring causing an unicode issue when rendering the API reference page.
py
diff --git a/werkzeug/serving.py b/werkzeug/serving.py index <HASH>..<HASH> 100644 --- a/werkzeug/serving.py +++ b/werkzeug/serving.py @@ -42,6 +42,10 @@ import socket import sys import signal + +can_fork = hasattr(os, "fork") + + try: import ssl except ImportError: @@ -62,10 +66,16 @@ def _get_openssl_crypt...
Avoid errors on systems that cannot fork Check if OS can fork before importing ForkingMixIn since Python <I> will no longer define that when it is not available on the operating system.
py
diff --git a/jarn/mkrelease/scm.py b/jarn/mkrelease/scm.py index <HASH>..<HASH> 100644 --- a/jarn/mkrelease/scm.py +++ b/jarn/mkrelease/scm.py @@ -198,7 +198,8 @@ class Mercurial(DSCM): url = lines[0] else: return '' - # hg show always returns 0 so we should never g...
Never is such a strong word...
py
diff --git a/jbxapi.py b/jbxapi.py index <HASH>..<HASH> 100644 --- a/jbxapi.py +++ b/jbxapi.py @@ -33,7 +33,7 @@ except ImportError: print("Please install the Python 'requests' package via pip", file=sys.stderr) sys.exit(1) -__version__ = "3.4.0" +__version__ = "3.5.0" # API URL. API_URL = "https://jbxc...
Added new dotnet-tracing parameter.
py
diff --git a/celeryconfig.py b/celeryconfig.py index <HASH>..<HASH> 100644 --- a/celeryconfig.py +++ b/celeryconfig.py @@ -46,6 +46,7 @@ CELERY_RESULT_BACKEND = "amqp" CELERY_IMPORTS = ( "openquake.calculators.hazard.classical.core", + "openquake.calculators.hazard.classical.post_processing", "openquake...
celeryconfig: Added openquake.calculators.hazard.classical.post_processing to celery imports.
py
diff --git a/satpy/tests/reader_tests/test_hrit_base.py b/satpy/tests/reader_tests/test_hrit_base.py index <HASH>..<HASH> 100644 --- a/satpy/tests/reader_tests/test_hrit_base.py +++ b/satpy/tests/reader_tests/test_hrit_base.py @@ -87,7 +87,7 @@ class TestHRITDecompress(unittest.TestCase): else: os...
Fix hrit decompression tests for windows
py
diff --git a/spyder/plugins/completion/providers/kite/provider.py b/spyder/plugins/completion/providers/kite/provider.py index <HASH>..<HASH> 100644 --- a/spyder/plugins/completion/providers/kite/provider.py +++ b/spyder/plugins/completion/providers/kite/provider.py @@ -9,6 +9,7 @@ # Standard library imports import l...
Import os in Kite
py
diff --git a/spacy/displacy/templates.py b/spacy/displacy/templates.py index <HASH>..<HASH> 100644 --- a/spacy/displacy/templates.py +++ b/spacy/displacy/templates.py @@ -6,7 +6,7 @@ from __future__ import unicode_literals # Jupyter to render it properly in a cell TPL_DEP_SVG = """ -<svg xmlns="http://www.w3.org/20...
Add xmlns:xlink so SVGs are rendered properly as individual files
py
diff --git a/pyciss/opusapi.py b/pyciss/opusapi.py index <HASH>..<HASH> 100644 --- a/pyciss/opusapi.py +++ b/pyciss/opusapi.py @@ -25,8 +25,8 @@ metadata_url = base_url + '/metadata' image_url = base_url + '/image/' dic = { - 'raw_data': "Raw Data", - 'calibrated_data': "Calibrated Data", + 'raw_data': "co...
adapt to new opusapi names for raw data
py
diff --git a/aiovk/sessions.py b/aiovk/sessions.py index <HASH>..<HASH> 100644 --- a/aiovk/sessions.py +++ b/aiovk/sessions.py @@ -24,16 +24,16 @@ class TokenSession: return await self.send_api_request(method_request._method_name, params, timeout) async def send_api_request(self, method_name, params=Non...
more pythonic if's
py
diff --git a/cmsplugin_cascade/__init__.py b/cmsplugin_cascade/__init__.py index <HASH>..<HASH> 100644 --- a/cmsplugin_cascade/__init__.py +++ b/cmsplugin_cascade/__init__.py @@ -17,6 +17,6 @@ Release logic: 13. git commit -m 'Start with <version>' 14. git push """ -__version__ = "2.2.2" +__version__ = "2.3" defa...
Bump to version <I>
py
diff --git a/pykeyboard/x11.py b/pykeyboard/x11.py index <HASH>..<HASH> 100644 --- a/pykeyboard/x11.py +++ b/pykeyboard/x11.py @@ -189,7 +189,7 @@ class PyKeyboard(PyKeyboardMeta): 'Page_Down', 'End', 'Begin', 'Insert', 'Delete', 'Equal', 'Multiply', 'Add', 'Separator', 'Subtract',...
change dict comprehension to use dict constructor
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,6 @@ setup(name='brokerest', author='Jonathon Morgan, Wiktor Wojcikowski', author_email='jonathon@satrails.com', license='MIT', - url='http://github.com/satrails/brokerest/', packages=[...
package information in setupy.py
py
diff --git a/llvmlite/binding/ffi.py b/llvmlite/binding/ffi.py index <HASH>..<HASH> 100644 --- a/llvmlite/binding/ffi.py +++ b/llvmlite/binding/ffi.py @@ -183,7 +183,8 @@ else: for _lib_path in _lib_paths: try: lib = ctypes.CDLL(_lib_path) - except OSError: + except OSError as e: + print(e) ...
print the OSError instead of swallowing it As title
py
diff --git a/algoliasearch/index.py b/algoliasearch/index.py index <HASH>..<HASH> 100644 --- a/algoliasearch/index.py +++ b/algoliasearch/index.py @@ -1083,7 +1083,7 @@ class Index(object): Retrieve a rule from the index with the specified objectID. @param objectID The objectID of the rule to retrieve...
fix(rules): also fix read_rule
py
diff --git a/swiftwind/costs/models.py b/swiftwind/costs/models.py index <HASH>..<HASH> 100644 --- a/swiftwind/costs/models.py +++ b/swiftwind/costs/models.py @@ -380,11 +380,12 @@ class RecurredCost(models.Model): for split, split_amount in splits: # Create the transaction legs for the inbound fu...
Only creating recurringcost transaction leg if amount > 0
py
diff --git a/python/board/feather_huzzah.py b/python/board/feather_huzzah.py index <HASH>..<HASH> 100644 --- a/python/board/feather_huzzah.py +++ b/python/board/feather_huzzah.py @@ -1,5 +1,7 @@ from microcontroller.esp8266 import pin +# TODO need equiv of INPUT_PULL_DOWN_16 ? see https://tttapa.github.io/ESP8266/Ch...
SDA/SCL matching labels on board
py
diff --git a/gevent_zeromq/_zmq.py b/gevent_zeromq/_zmq.py index <HASH>..<HASH> 100644 --- a/gevent_zeromq/_zmq.py +++ b/gevent_zeromq/_zmq.py @@ -59,6 +59,8 @@ class Socket(socket.Socket): self._state_event = read_event(self.getsockopt(zmq.FD), self.__state_changed, persist=True) def __state_change...
check if we're closed before a potentially failing getsockopt call
py
diff --git a/stimela/cargo/cab/lwimager/src/run.py b/stimela/cargo/cab/lwimager/src/run.py index <HASH>..<HASH> 100644 --- a/stimela/cargo/cab/lwimager/src/run.py +++ b/stimela/cargo/cab/lwimager/src/run.py @@ -171,9 +171,13 @@ if predict: hdu = _hdu[0] else: hdu = _hdu - ...
Only raise exception if pixel size is not given
py
diff --git a/src/toil/statsAndLogging.py b/src/toil/statsAndLogging.py index <HASH>..<HASH> 100644 --- a/src/toil/statsAndLogging.py +++ b/src/toil/statsAndLogging.py @@ -109,7 +109,10 @@ class StatsAndLogging( object ): startClock = getTotalCpuTime() def callback(fileHandle): - stats = j...
StatsAndLogging(): ensure json.load() receives only string input - json.load() doesn't accept byte input for python <= <I> - use .decode() for conversion from non-string to string
py
diff --git a/openquake/calculators/base.py b/openquake/calculators/base.py index <HASH>..<HASH> 100644 --- a/openquake/calculators/base.py +++ b/openquake/calculators/base.py @@ -185,7 +185,6 @@ class BaseCalculator(metaclass=abc.ABCMeta): self.oqparam, self.datastore.hdf5) logging.info(f'...
Supporting h5py >=<I>
py
diff --git a/convert.py b/convert.py index <HASH>..<HASH> 100755 --- a/convert.py +++ b/convert.py @@ -63,5 +63,5 @@ elif outfile[-3:] == 'xls': elif outfile[-4:] == 'json': db = ex.exportJson(db, outfile) else: - sys.stderr.write('File not recognized: ' + infile + "\n") + sys.stderr.write('File not recognize...
fix outfile file name not recognized print
py
diff --git a/qimage2ndarray/__init__.py b/qimage2ndarray/__init__.py index <HASH>..<HASH> 100644 --- a/qimage2ndarray/__init__.py +++ b/qimage2ndarray/__init__.py @@ -2,7 +2,13 @@ import sys as _sys import numpy as _np from .dynqt import QtGui as _qt -from .qimageview_python import qimageview as _qimageview + +from...
re-enable the use of a C++ extension for PythonQt PythonQt does not allow adding attributes to C++ objects, so even if the setup of the ndarray works correctly, the __array_interface__ trick does not.
py
diff --git a/salt/config.py b/salt/config.py index <HASH>..<HASH> 100644 --- a/salt/config.py +++ b/salt/config.py @@ -24,6 +24,7 @@ except: import salt.crypt import salt.loader import salt.utils +import salt.pillar log = logging.getLogger(__name__) @@ -178,6 +179,13 @@ def minion_config(path): opts['gra...
Add pillar data to the minion opts after grains
py
diff --git a/pyeda/expr.py b/pyeda/expr.py index <HASH>..<HASH> 100644 --- a/pyeda/expr.py +++ b/pyeda/expr.py @@ -609,18 +609,16 @@ class Literal(Expression): class Variable(boolfunc.Variable, Literal): """Boolean variable (expression)""" - _MEM = dict() + _MEM = OrderedDict() def __new__(cls, nam...
Fix bug with Variable _MEM In order to get the correct unique, global index, all variables need to be listed in a flat memory.
py
diff --git a/tests/test_output_folder.py b/tests/test_output_folder.py index <HASH>..<HASH> 100644 --- a/tests/test_output_folder.py +++ b/tests/test_output_folder.py @@ -10,7 +10,6 @@ TestOutputFolder.test_output_folder """ from __future__ import unicode_literals -import logging import os import pytest @@ -18,...
Remove logging from test_output_folder
py
diff --git a/cleverhans/attacks.py b/cleverhans/attacks.py index <HASH>..<HASH> 100644 --- a/cleverhans/attacks.py +++ b/cleverhans/attacks.py @@ -430,7 +430,12 @@ class BasicIterativeMethod(Attack): 'clip_max': self.clip_max } - if not tf.executing_eagerly(): + try: + e...
lower version has no tf.executing_eagerly()
py
diff --git a/custodian/qchem/new_handlers.py b/custodian/qchem/new_handlers.py index <HASH>..<HASH> 100644 --- a/custodian/qchem/new_handlers.py +++ b/custodian/qchem/new_handlers.py @@ -49,7 +49,7 @@ class QChemErrorHandler(ErrorHandler): self.geom_max_cycles = geom_max_cycles self.qcinp = QCInput.fr...
Trying to fix TravisCI problem with handler tests
py
diff --git a/intranet/apps/emerg/views.py b/intranet/apps/emerg/views.py index <HASH>..<HASH> 100644 --- a/intranet/apps/emerg/views.py +++ b/intranet/apps/emerg/views.py @@ -28,7 +28,12 @@ def check_emerg(): timeout = settings.FCPS_EMERGENCY_TIMEOUT - r = requests.get("{}?{}".format(settings.FCPS_EMERGENCY...
fix(emerg): add exception handling for request timeouts on emergency page
py
diff --git a/dustmaps/tests/test_iphas.py b/dustmaps/tests/test_iphas.py index <HASH>..<HASH> 100644 --- a/dustmaps/tests/test_iphas.py +++ b/dustmaps/tests/test_iphas.py @@ -40,34 +40,12 @@ class TestIPHAS(unittest.TestCase): def setUpClass(self): t0 = time.time() - # Set up IPHPAS query object ...
Remove unnecessary code from IPHAS test.
py
diff --git a/ait/core/server/client.py b/ait/core/server/client.py index <HASH>..<HASH> 100644 --- a/ait/core/server/client.py +++ b/ait/core/server/client.py @@ -96,7 +96,7 @@ class PortOutputClient(ZMQInputClient): """ This is the parent class for all outbound streams which publish to a port. It opens ...
Issue #<I> - PortOutputClient to dump raw message data Update PortOutputClient so that raw message data is output without additional stream name information. This ensures that output data format is consistent with pre-server expectations.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages setup( name="OLCTools", - version="0.3.57", + version="0.3.58", packages=find_packages(), author="Andrew Low", author_email="andrew.low@insp...
Increment version to <I>
py
diff --git a/ncpol2sdpa/sdp_relaxation.py b/ncpol2sdpa/sdp_relaxation.py index <HASH>..<HASH> 100644 --- a/ncpol2sdpa/sdp_relaxation.py +++ b/ncpol2sdpa/sdp_relaxation.py @@ -440,7 +440,7 @@ class SdpRelaxation(object): else: n_inequalities = 0 if removeequalities: - constraint...
Bug related to removal of equalities fixed
py
diff --git a/ryu/services/protocols/bgp/rtconf/base.py b/ryu/services/protocols/bgp/rtconf/base.py index <HASH>..<HASH> 100644 --- a/ryu/services/protocols/bgp/rtconf/base.py +++ b/ryu/services/protocols/bgp/rtconf/base.py @@ -20,6 +20,7 @@ from abc import ABCMeta from abc import abstractmethod import numbers import...
Python3: complete previous removal of types usage Fix the leftover of previos types.*Type removal. Also, as python3 doesn't have long type, use six.integer_types instead.
py
diff --git a/frontmatter/__init__.py b/frontmatter/__init__.py index <HASH>..<HASH> 100644 --- a/frontmatter/__init__.py +++ b/frontmatter/__init__.py @@ -34,7 +34,7 @@ class Frontmatter: fmatter = result.group(1) body = result.group(2) return { - "attributes": yaml.load(fm...
Specify a loader when loading YAML This addresses the following deprecation warning when loading the YAML: ``` YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read <URL>`.
py
diff --git a/export_gapfind_parameters.py b/export_gapfind_parameters.py index <HASH>..<HASH> 100644 --- a/export_gapfind_parameters.py +++ b/export_gapfind_parameters.py @@ -27,7 +27,7 @@ if __name__ == '__main__': r.readline() readerr = csv.reader(r, dialect='excel') for rowr in readerr: - SEED_...
Fixed reading table with different number of columns
py
diff --git a/tests/test_cli.py b/tests/test_cli.py index <HASH>..<HASH> 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -3,6 +3,16 @@ import pytest from click.testing import CliRunner +def test_exit_codes(): + # We shouldn't change exit codes so that clients can rely on them + from pycobertura.cli ...
Add test_exit_codes so that we know that we're not changing exit codes, which would break callers expecting old ones.
py
diff --git a/deployment/appengine/hooks.py b/deployment/appengine/hooks.py index <HASH>..<HASH> 100644 --- a/deployment/appengine/hooks.py +++ b/deployment/appengine/hooks.py @@ -58,7 +58,6 @@ def _get_artifact_response(artifact): response = flask.Response( headers={blobstore.BLOB_KEY_HEADER: str(...
Restore artifact response caching
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -60,6 +60,7 @@ CLASSIFIERS = [ LONG_DESCRIPTION = text_of('README.rst') + '\n\n' + text_of('HISTORY.rst') +ZIP_SAFE = False params = { 'name': NAME, @@ -77,6 +78,7 @@ params = { 'tests_require': ...
Add 'zip_safe' == False to setup.py
py
diff --git a/satpy/tests/compositor_tests/test_viirs.py b/satpy/tests/compositor_tests/test_viirs.py index <HASH>..<HASH> 100644 --- a/satpy/tests/compositor_tests/test_viirs.py +++ b/satpy/tests/compositor_tests/test_viirs.py @@ -97,7 +97,7 @@ class TestVIIRSComposites(unittest.TestCase): 'eq...
Lower tolerance for histogram dnb test
py
diff --git a/examples/run_squad.py b/examples/run_squad.py index <HASH>..<HASH> 100644 --- a/examples/run_squad.py +++ b/examples/run_squad.py @@ -45,7 +45,7 @@ logger = logging.getLogger(__name__) class SquadExample(object): - """A single training/test example for simple sequence classification.""" + """A s...
Fixing the commentary of the `SquadExample` class.
py
diff --git a/kafka/codec.py b/kafka/codec.py index <HASH>..<HASH> 100644 --- a/kafka/codec.py +++ b/kafka/codec.py @@ -2,6 +2,7 @@ import gzip from io import BytesIO import struct +import six from six.moves import xrange _XERIAL_V1_HEADER = (-126, b'S', b'N', b'A', b'P', b'P', b'Y', 0, 1, 1) @@ -100,10 +101,15 ...
Python3 does not support buffer -- use memoryview in snappy_decode
py
diff --git a/remoto/backends/__init__.py b/remoto/backends/__init__.py index <HASH>..<HASH> 100644 --- a/remoto/backends/__init__.py +++ b/remoto/backends/__init__.py @@ -243,7 +243,7 @@ class JsonModuleExecute(object): 'Exception: error calling "%s"' % name ] ...
backends: include stdout on unexpected remote exceptions
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -13,10 +13,21 @@ setup( url='https://github.com/synthicity/urbansim', classifiers=['Development Status :: 4 - Beta', 'Programming Language :: Python :: 2.7', - 'License :: OSI App...
Add installation requirements to setup.py.
py
diff --git a/spyder/plugins/editor/lsp/providers/workspace.py b/spyder/plugins/editor/lsp/providers/workspace.py index <HASH>..<HASH> 100644 --- a/spyder/plugins/editor/lsp/providers/workspace.py +++ b/spyder/plugins/editor/lsp/providers/workspace.py @@ -61,6 +61,9 @@ class WorkspaceProvider: }) ...
Emit workspace/didChangeWorkspaceFolders call
py