diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/utils/slither_format/format_constable_states.py b/utils/slither_format/format_constable_states.py index <HASH>..<HASH> 100644 --- a/utils/slither_format/format_constable_states.py +++ b/utils/slither_format/format_constable_states.py @@ -5,7 +5,7 @@ class FormatConstableStates: @staticmethod def ...
Updates format_constable_states to use filename_absolute. test_constable_states passes.
py
diff --git a/pysswords/crypt.py b/pysswords/crypt.py index <HASH>..<HASH> 100644 --- a/pysswords/crypt.py +++ b/pysswords/crypt.py @@ -22,16 +22,17 @@ class CryptOptions(object): def make_keys(password, salt=None, iterations=100000): """Generates two 128-bit keys from the given password using - PBKDF2-SHA...
Updating docstring for in crypt
py
diff --git a/forestci/forestci.py b/forestci/forestci.py index <HASH>..<HASH> 100644 --- a/forestci/forestci.py +++ b/forestci/forestci.py @@ -236,7 +236,7 @@ def random_forest_error(forest, X_train, X_test, inbag=None, inbag = calc_inbag(X_train.shape[0], forest) pred = np.array([tree.predict(X_test) f...
Fixed bug that was averaging trees over the prediction axes. Now the average of the trees is obtained for each prediction and not the average over all predictions of each tree.
py
diff --git a/minsert.py b/minsert.py index <HASH>..<HASH> 100644 --- a/minsert.py +++ b/minsert.py @@ -90,7 +90,7 @@ def run_test(args): # insert the last batch of remaining documents results.append(pool.apply(insert_thread, (args['jsonfile'], args['number']/args['processes'] + args['number']%args['processes'], ...
changed delay to ms instead of sec.
py
diff --git a/crosscat/LocalEngine.py b/crosscat/LocalEngine.py index <HASH>..<HASH> 100644 --- a/crosscat/LocalEngine.py +++ b/crosscat/LocalEngine.py @@ -233,6 +233,8 @@ class LocalEngine(EngineTemplate.EngineTemplate): :returns: X_L, X_D -- the evolved latent state """ + if n_steps <= 0: + ...
Error message if user tried to analyze w/ no steps
py
diff --git a/src/nlpia/book/examples/ch09_imdb_sentiment_lstm_v1.py b/src/nlpia/book/examples/ch09_imdb_sentiment_lstm_v1.py index <HASH>..<HASH> 100644 --- a/src/nlpia/book/examples/ch09_imdb_sentiment_lstm_v1.py +++ b/src/nlpia/book/examples/ch09_imdb_sentiment_lstm_v1.py @@ -3,7 +3,7 @@ # In[1]: - +from __futur...
"from __future__ import print_function" is moved to the beginning of file
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -12,7 +12,7 @@ from future import standard_library standard_library.install_aliases() from setuptools import setup setup(name='pyprofiler', - version='15', + version='16', description='Profiler utility for ...
reposmon Friday <I> March <I> (week:9 day:<I>), <I>:<I>:<I>
py
diff --git a/salt/modules/disk.py b/salt/modules/disk.py index <HASH>..<HASH> 100644 --- a/salt/modules/disk.py +++ b/salt/modules/disk.py @@ -472,11 +472,13 @@ def hpa(disks, size=None): It's often used by OEMS to hide parts of a disk, and for overprovisioning SSD's - *WARNING* Setting the HPA might clobbe...
Small doc fixes to new disk functions
py
diff --git a/example/modelchain_example.py b/example/modelchain_example.py index <HASH>..<HASH> 100644 --- a/example/modelchain_example.py +++ b/example/modelchain_example.py @@ -79,10 +79,9 @@ def get_weather_data(filename='weather.csv', **kwargs): weather_df.index = pd.to_datetime(weather_df.index).tz_convert( ...
Add workaround for converting heights to integers
py
diff --git a/rockfinder/__version__.py b/rockfinder/__version__.py index <HASH>..<HASH> 100644 --- a/rockfinder/__version__.py +++ b/rockfinder/__version__.py @@ -1 +1 @@ -__version__ = '0.5.4' +__version__ = '0.5.5'
bulking tasks to make multiprocessing use more CPU power
py
diff --git a/em73xx/sms.py b/em73xx/sms.py index <HASH>..<HASH> 100644 --- a/em73xx/sms.py +++ b/em73xx/sms.py @@ -7,10 +7,13 @@ class SMS(object): self.message = message.strip() def parse_header(self, header): - (sms_id, status, sender, something, date, time) = header.split(",") + (sms_id...
parse the sms id better
py
diff --git a/satpy/readers/grib.py b/satpy/readers/grib.py index <HASH>..<HASH> 100644 --- a/satpy/readers/grib.py +++ b/satpy/readers/grib.py @@ -294,9 +294,9 @@ class GRIBFileHandler(BaseFileHandler): for key in key_dicts: if key_dicts[key] in msg.keys(): - ds_info.update({key: ...
Update setting of keys in the grib reader.
py
diff --git a/src/discoursegraphs/readwrite/mmax2.py b/src/discoursegraphs/readwrite/mmax2.py index <HASH>..<HASH> 100755 --- a/src/discoursegraphs/readwrite/mmax2.py +++ b/src/discoursegraphs/readwrite/mmax2.py @@ -121,21 +121,21 @@ class MMAXDocumentGraph(MultiDiGraph): """ assert os.path.isfile(anno...
mmax2.py: marked stubs w/ NotImplementedError
py
diff --git a/openquake/engine/job/validation.py b/openquake/engine/job/validation.py index <HASH>..<HASH> 100644 --- a/openquake/engine/job/validation.py +++ b/openquake/engine/job/validation.py @@ -629,20 +629,6 @@ class EventBasedRiskForm(BaseOQModelForm): class EventBasedFRRiskForm(EventBasedRiskForm): calc_mo...
Removed a redundant method in EventBasedFRRiskForm Former-commit-id: <I>f5c<I>fca<I>d<I>ce<I>fed5c<I>e<I>df9bf
py
diff --git a/ufork/ufork.py b/ufork/ufork.py index <HASH>..<HASH> 100644 --- a/ufork/ufork.py +++ b/ufork/ufork.py @@ -39,11 +39,6 @@ class Worker(object): signal.signal(signal.SIGTERM, lambda signal, frame: self.child_stop()) pid = os.getpid() self.child_close_fds() - #sys.stdout = So...
added worker REPL threads as well
py
diff --git a/PyKCS11/__init__.py b/PyKCS11/__init__.py index <HASH>..<HASH> 100644 --- a/PyKCS11/__init__.py +++ b/PyKCS11/__init__.py @@ -610,7 +610,7 @@ class PyKCS11Lib(object): tokeninfo.hardwareVersion.minor) t.firmwareVersion = (tokeninfo.firmwareVersion.major, ...
getTokenInfo: replace NUL char by ' ' in utcTime Some PKCS#<I> libraries reports only NUL bytes in utcTime field. They are now replaced with ' ' so the output is valid in ASCII and UTF-8.
py
diff --git a/docker/client.py b/docker/client.py index <HASH>..<HASH> 100644 --- a/docker/client.py +++ b/docker/client.py @@ -233,7 +233,7 @@ class Client(requests.Session): break _, length = struct.unpack('>BxxxL', header) if not length: - break + ...
fix premature EOF detection in streams The docker engine may send empty chunks of data in the stream (especially since <URL>) They should not be taken for EOF
py
diff --git a/tools/lbd_lock_test/testrunner.py b/tools/lbd_lock_test/testrunner.py index <HASH>..<HASH> 100755 --- a/tools/lbd_lock_test/testrunner.py +++ b/tools/lbd_lock_test/testrunner.py @@ -83,13 +83,12 @@ def runTest(i): prevnow = now sys.stdout.write(" %d seconds " % ((now - sta...
Updating test runner so it won't print out the error message ad nauseam.
py
diff --git a/OpenSSL/SSL.py b/OpenSSL/SSL.py index <HASH>..<HASH> 100644 --- a/OpenSSL/SSL.py +++ b/OpenSSL/SSL.py @@ -196,16 +196,15 @@ class _VerifyHelper(object): def _asFileDescriptor(obj): fd = None - - if not isinstance(obj, int): + if not isinstance(obj, (int, long)): meth = getattr(obj, "...
support <I> bit fd's
py
diff --git a/src/you_get/extractor.py b/src/you_get/extractor.py index <HASH>..<HASH> 100644 --- a/src/you_get/extractor.py +++ b/src/you_get/extractor.py @@ -244,5 +244,6 @@ class VideoExtractor(): # For main_dev() #download_urls(urls, self.title, self.streams[stream_id]['container'], self....
[extractor]add a parameter "keep_obj" to forbid VideoExtractor re-init after download instance method
py
diff --git a/GPy/likelihoods/Gaussian.py b/GPy/likelihoods/Gaussian.py index <HASH>..<HASH> 100644 --- a/GPy/likelihoods/Gaussian.py +++ b/GPy/likelihoods/Gaussian.py @@ -42,8 +42,8 @@ class Gaussian(likelihood): """ mean = mu*self._std + self._mean true_var = (var + self._variance)*self._std...
proper propagation of variance through the Gaussian likelihood
py
diff --git a/limpyd/fields.py b/limpyd/fields.py index <HASH>..<HASH> 100644 --- a/limpyd/fields.py +++ b/limpyd/fields.py @@ -42,9 +42,14 @@ class RedisProxyCommand(object): """ Return the function in redis when not found in the abstractmodel. """ - if name in self.available_commands:...
Always try to use defined attr in __getattr__ If a method with the name of a redis command is defined, use it instead of the call to _traverse_command
py
diff --git a/ocrd/workspace.py b/ocrd/workspace.py index <HASH>..<HASH> 100644 --- a/ocrd/workspace.py +++ b/ocrd/workspace.py @@ -72,6 +72,7 @@ class Workspace(object): log.debug("Already downloaded: %s", f.local_filename) else: f.local_filename = self.download_url(f.url, **kwargs) +...
downloading an OcrdFile will set the URL to the local_filename, fix #<I>
py
diff --git a/falafel/mappers/tests/test_smartctl.py b/falafel/mappers/tests/test_smartctl.py index <HASH>..<HASH> 100644 --- a/falafel/mappers/tests/test_smartctl.py +++ b/falafel/mappers/tests/test_smartctl.py @@ -168,6 +168,18 @@ def test_standard_drive(): assert data['info']['SMART support is'] == 'Enabled' ...
Added tests for parsing of health and values section
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -4,6 +4,8 @@ setup( name = 'Adyen', packages = ['Adyen'], version = '1.1.0', + maintainer = 'Adyen', + maintainer_email= 'support@adyen.com', description = 'Adyen Python Api', long_description = "Adyen Python ...
Added metadata to setup.py
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -41,7 +41,7 @@ setuptools.setup(name='nestcheck', license='MIT', keywords='nested-sampling sampling error-analysis', classifiers=[ # Optional - 'Develo...
updating dev status to production/stable
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -4,7 +4,7 @@ module = __import__('sgp4') description, long_description = module.__doc__.split('\n', 1) setup(name = 'sgp4', - version = '1.0', + version = '1.1-dev', description = description, long_...
Bumped to dev version for safety
py
diff --git a/src/wormhole_cli/cmd_receive.py b/src/wormhole_cli/cmd_receive.py index <HASH>..<HASH> 100644 --- a/src/wormhole_cli/cmd_receive.py +++ b/src/wormhole_cli/cmd_receive.py @@ -128,7 +128,7 @@ class TwistedReceiver: # we're receiving a text message self.msg(them_d["message"]) data =...
cmd_receive: use wait=True for the last ack This prevents the process from shutting down before the ack makes it to the server.
py
diff --git a/salt/modules/virt.py b/salt/modules/virt.py index <HASH>..<HASH> 100644 --- a/salt/modules/virt.py +++ b/salt/modules/virt.py @@ -178,7 +178,7 @@ def _gen_xml(name, cpu, mem, vda, nicp, emulator, **kwargs): data = data.replace('%%DISKTYPE%%', _image_type(vda)) boot_str = '' if 'boot_dev' in ...
Fixed wrong call to boot_dev variable
py
diff --git a/mrcfile/mrcinterpreter.py b/mrcfile/mrcinterpreter.py index <HASH>..<HASH> 100644 --- a/mrcfile/mrcinterpreter.py +++ b/mrcfile/mrcinterpreter.py @@ -197,9 +197,6 @@ class MrcInterpreter(MrcObject): # Use a recarray to allow access to fields as attributes # (e.g. header.mode instead of he...
Do not set writeable flag This is related to: <URL>
py
diff --git a/programs/eqarea_magic.py b/programs/eqarea_magic.py index <HASH>..<HASH> 100755 --- a/programs/eqarea_magic.py +++ b/programs/eqarea_magic.py @@ -415,7 +415,7 @@ def main(): black = '#000000' purple = '#800080' titles={} - titles['eq']='Equal Area Pl...
fix eqarea_magic for use with isServer (name of figure is ‘eqarea’ not ‘eq’), #<I>
py
diff --git a/Lib/mutatorMath/ufo/document.py b/Lib/mutatorMath/ufo/document.py index <HASH>..<HASH> 100644 --- a/Lib/mutatorMath/ufo/document.py +++ b/Lib/mutatorMath/ufo/document.py @@ -376,6 +376,20 @@ class DesignSpaceDocumentReader(object): if self.progressFunc is not None: self.progressFunc(s...
Merge branch 'master' into bender-experimental # Conflicts: # Lib/mutatorMath/test/ufo/data/instances/C/testOutput_kerning_muted.ufo/l ib.plist
py
diff --git a/sixpack/web.py b/sixpack/web.py index <HASH>..<HASH> 100644 --- a/sixpack/web.py +++ b/sixpack/web.py @@ -42,6 +42,7 @@ def status(): @app.route("/") def hello(): experiments = Experiment.all(db.REDIS) + experiments = [exp.name for exp in experiments] return render_template('dashboard.html',...
fix broken dashboard, expects list of names
py
diff --git a/integration_tests/blockstack_integration_tests/scenarios/name_preorder_register_portal_datastore.py b/integration_tests/blockstack_integration_tests/scenarios/name_preorder_register_portal_datastore.py index <HASH>..<HASH> 100644 --- a/integration_tests/blockstack_integration_tests/scenarios/name_preorder_...
blockstack-storage is going to be separate from blockstack.js
py
diff --git a/mailchimp3/baseapi.py b/mailchimp3/baseapi.py index <HASH>..<HASH> 100644 --- a/mailchimp3/baseapi.py +++ b/mailchimp3/baseapi.py @@ -45,7 +45,7 @@ class BaseApi(object): result = self._mc_client._get(url=url, offset=0, count=100, **kwargs) total = result['total_items'] if total ...
fixing bug with duplicate calls to fetch data from mailchimp
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ def readme(): return f.read() setup(name='TwitterSearch', - version='0.1.1', + version='0.22', description='A library to easily iterate tweets found by the Twitter Search API', ...
updated on pypi to <I>
py
diff --git a/bettercache/utils.py b/bettercache/utils.py index <HASH>..<HASH> 100644 --- a/bettercache/utils.py +++ b/bettercache/utils.py @@ -53,7 +53,7 @@ class CachingMixin(object): def should_cache(self, request, response): """ Given the request and response should it be cached """ - if not r...
[CMSPERF-<I>]apparently some tests do odd things with the request
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -22,6 +22,14 @@ extras_require = { 'all': test_requires, } + +classifiers = [ + "License :: OSI Approved :: BSD License", + "Programming Language :: Python :: 2.7", + "Programming Language :: Python :: 3.6", +...
Add minimalist classifier list to setup.py
py
diff --git a/fabfile.py b/fabfile.py index <HASH>..<HASH> 100644 --- a/fabfile.py +++ b/fabfile.py @@ -256,7 +256,7 @@ def collect_remote_statics(): 'hash': "git://github.com/mlevans/leaflet-hash.git@master", 'storage': 'git://github.com/yohanboniface/Leaflet.Storage.git@master', 'edit_in_osm...
on demo site, use custom version of MiniMap until PR is merged
py
diff --git a/morango/models/utils.py b/morango/models/utils.py index <HASH>..<HASH> 100644 --- a/morango/models/utils.py +++ b/morango/models/utils.py @@ -2,6 +2,7 @@ import hashlib import ifcfg import os import platform +import socket import subprocess import sys import uuid @@ -203,6 +204,18 @@ def _mac_is_loca...
Avoid unnecessary calls to gethostbyaddr as it can be slow on Windows
py
diff --git a/ontquery/terms.py b/ontquery/terms.py index <HASH>..<HASH> 100644 --- a/ontquery/terms.py +++ b/ontquery/terms.py @@ -291,6 +291,10 @@ class OntId(Identifier, str): # TODO all terms singletons to prevent nastyness def quoted(self): return quote(self.iri, safe=tuple()) + @property + d...
added OntId.asTerm, not doing asInstrumented quite yet
py
diff --git a/tests/test_file.py b/tests/test_file.py index <HASH>..<HASH> 100644 --- a/tests/test_file.py +++ b/tests/test_file.py @@ -159,6 +159,7 @@ class FileKeyringTests(BackendBasicTests): class EncryptedFileKeyringTestCase(FileKeyringTests, unittest.TestCase): def setUp(self): + pytest.importorskip...
Skip EncryptedFileKeyring tests when PyCrypto is not available.
py
diff --git a/salt/output/__init__.py b/salt/output/__init__.py index <HASH>..<HASH> 100644 --- a/salt/output/__init__.py +++ b/salt/output/__init__.py @@ -42,7 +42,7 @@ def try_printout(data, out, opts): try: return get_printout('nested', None)(data).rstrip() except (KeyError, AttributeEr...
Fix typo from <I>f0e
py
diff --git a/satsearch/scene.py b/satsearch/scene.py index <HASH>..<HASH> 100644 --- a/satsearch/scene.py +++ b/satsearch/scene.py @@ -129,5 +129,8 @@ class Scenes(object): f.write(json.dumps({'scenes': scenes})) @classmethod - def load(cls): + def load(cls, filename): """ Load a coll...
add load from file option to Scenes
py
diff --git a/test/utils.py b/test/utils.py index <HASH>..<HASH> 100644 --- a/test/utils.py +++ b/test/utils.py @@ -1,6 +1,7 @@ # -*- coding: utf-8 -*- """Module of utilities for testing.""" +import json import os import urllib2 @@ -42,3 +43,13 @@ def load_stub_as_iterable(filename): ) return open(fi...
Add ability to load a stub as JSON.
py
diff --git a/src/ocrmypdf/pdfinfo/__init__.py b/src/ocrmypdf/pdfinfo/__init__.py index <HASH>..<HASH> 100644 --- a/src/ocrmypdf/pdfinfo/__init__.py +++ b/src/ocrmypdf/pdfinfo/__init__.py @@ -756,6 +756,12 @@ class PdfInfo: infile, detailed_page_analysis, log=log ) self._needs_rendering = ...
pdfinfo: be more specific about detecting XFA we can't render
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -68,7 +68,6 @@ if __name__=="__main__": if 'upload' in sys.argv: import imagen - imagen.__version__.verify() - assert str(imagen.__version__) == setup_args['version'] + imagen.__version__.v...
Updated call to verify method of __version__ in setup.py
py
diff --git a/pgmpy/factors/CPD.py b/pgmpy/factors/CPD.py index <HASH>..<HASH> 100644 --- a/pgmpy/factors/CPD.py +++ b/pgmpy/factors/CPD.py @@ -4,6 +4,7 @@ from __future__ import division from itertools import product from warnings import warn +import numbers import numpy as np @@ -107,7 +108,7 @@ class Tabular...
checks variable_card against numbers.Integral instead of int
py
diff --git a/pyextdirect/configuration.py b/pyextdirect/configuration.py index <HASH>..<HASH> 100644 --- a/pyextdirect/configuration.py +++ b/pyextdirect/configuration.py @@ -17,7 +17,7 @@ # along with pyextdirect. If not, see <http://www.gnu.org/licenses/>. -__all__ = ['create_configuration', 'expose', 'BASIC', ...
Fix missing imports in __all__ for configuration
py
diff --git a/tests/input/test_field_type_binary_array.py b/tests/input/test_field_type_binary_array.py index <HASH>..<HASH> 100644 --- a/tests/input/test_field_type_binary_array.py +++ b/tests/input/test_field_type_binary_array.py @@ -383,3 +383,26 @@ class TestInputsFieldTypeBinaryArray(InputTest): # error du...
Added test for Optional customized binary array
py
diff --git a/livesync/indico_livesync/handler.py b/livesync/indico_livesync/handler.py index <HASH>..<HASH> 100644 --- a/livesync/indico_livesync/handler.py +++ b/livesync/indico_livesync/handler.py @@ -153,8 +153,10 @@ def _register_deletion(obj, parent): def _register_change(obj, action): - if isinstance(obj,...
Livesync: Do not break when moving an event
py
diff --git a/tests/test_georaster.py b/tests/test_georaster.py index <HASH>..<HASH> 100644 --- a/tests/test_georaster.py +++ b/tests/test_georaster.py @@ -138,7 +138,7 @@ def test_copy_with(): def test_resize(): - resampling_modes = [m for m in dir(Resampling) if not callable(getattr(Resampling, m)) and not m.s...
Simplify getting resampling modes
py
diff --git a/pyvista/plotting/widgets.py b/pyvista/plotting/widgets.py index <HASH>..<HASH> 100644 --- a/pyvista/plotting/widgets.py +++ b/pyvista/plotting/widgets.py @@ -102,16 +102,15 @@ class WidgetHelper: Examples -------- - The following example generates a static image of the widget. + ...
add clip box example to docstring (#<I>) * Update widgets.py Added an example clip box to the doc string and a reference to the example page * Apply suggestions from code review
py
diff --git a/scout/server/config.py b/scout/server/config.py index <HASH>..<HASH> 100644 --- a/scout/server/config.py +++ b/scout/server/config.py @@ -3,6 +3,8 @@ SECRET_KEY = "this is not secret..." REMEMBER_COOKIE_NAME = "scout_remember_me" MONGO_DBNAME = "scout" +MONGO_HOST = "mongodb" +MONGO_PORT = 27017 BOO...
added MONGO HOST/PORT to config
py
diff --git a/exporters/python_interpreter.py b/exporters/python_interpreter.py index <HASH>..<HASH> 100644 --- a/exporters/python_interpreter.py +++ b/exporters/python_interpreter.py @@ -8,12 +8,14 @@ def create_context(**kwargs): import datetime import re import itertools - context = dict( - d...
ensuring the default modules can't be overriden
py
diff --git a/pysos/sos_step.py b/pysos/sos_step.py index <HASH>..<HASH> 100755 --- a/pysos/sos_step.py +++ b/pysos/sos_step.py @@ -585,6 +585,11 @@ class Base_Step_Executor: elif env.sig_mode == 'construct': if signatures[idx].write(): ...
Raise an error for overlapping input and output files
py
diff --git a/src/board.py b/src/board.py index <HASH>..<HASH> 100755 --- a/src/board.py +++ b/src/board.py @@ -57,6 +57,9 @@ elif detector.board.RASPBERRY_PI_B_REV2: elif board_id == ap_board.BEAGLEBONE_BLACK: from adafruit_blinka.board.beaglebone_black import * + +elif board_id == ap_board.BEAGLEBONE_BLACK_IN...
Added BEAGLEBONE_BLACK_INDUSTRIAL to board.py. It still imports from adafruit_blinka.board.beaglebone_black because it is otherwise compatible except for the increased temperature range.
py
diff --git a/anytemplate/utils.py b/anytemplate/utils.py index <HASH>..<HASH> 100644 --- a/anytemplate/utils.py +++ b/anytemplate/utils.py @@ -19,36 +19,12 @@ try: from anyconfig.api import container, load except ImportError: container = dict - - try: - import json - except ImportError: - ...
utilize a couple of utility functions in anytemplate.compat if anyconfig is not available
py
diff --git a/python/ray/tests/test_client.py b/python/ray/tests/test_client.py index <HASH>..<HASH> 100644 --- a/python/ray/tests/test_client.py +++ b/python/ray/tests/test_client.py @@ -705,7 +705,9 @@ def test_object_ref_cleanup(): # See https://github.com/ray-project/ray/issues/17968 for details with ray_s...
[client] deflake test_object_ref_cleanup (#<I>)
py
diff --git a/src/cobra/flux_analysis/helpers.py b/src/cobra/flux_analysis/helpers.py index <HASH>..<HASH> 100644 --- a/src/cobra/flux_analysis/helpers.py +++ b/src/cobra/flux_analysis/helpers.py @@ -1,17 +1,34 @@ -# -*- coding: utf-8 -*- - """Helper functions for all flux analysis methods.""" -from __future__ import...
refactor: add typing annotations and upgrade code style for helpers.py
py
diff --git a/buildbot/steps/source.py b/buildbot/steps/source.py index <HASH>..<HASH> 100644 --- a/buildbot/steps/source.py +++ b/buildbot/steps/source.py @@ -1201,6 +1201,7 @@ class P4(Source): @param p4client: The perforce client to use for this buildslave. """ + self.p4base = p4base ...
P4: p4base was not a member of the class (fix #<I>)
py
diff --git a/openquake/calculators/ucerf_classical.py b/openquake/calculators/ucerf_classical.py index <HASH>..<HASH> 100644 --- a/openquake/calculators/ucerf_classical.py +++ b/openquake/calculators/ucerf_classical.py @@ -207,7 +207,7 @@ class UcerfPSHACalculator(classical.PSHACalculator): args = (bckgnd_...
Changed the logged name of the tasks
py
diff --git a/master/buildbot/test/util/connector_component.py b/master/buildbot/test/util/connector_component.py index <HASH>..<HASH> 100644 --- a/master/buildbot/test/util/connector_component.py +++ b/master/buildbot/test/util/connector_component.py @@ -60,8 +60,6 @@ class ConnectorComponentMixin(TestReactorMixin, db....
test: Don't do duplicate DB pool shutdown
py
diff --git a/bundles.py b/bundles.py index <HASH>..<HASH> 100644 --- a/bundles.py +++ b/bundles.py @@ -41,6 +41,7 @@ styles = Bundle( "less/base/**/*.less" ], filters="less,cleancss", + weight=50 ) # FIXME
base: bundles structure changes * Makes bundles follow the rule: base shared bundles are separated from modules bundles.
py
diff --git a/watchdog/src/watchdog/briefkasten_watchdog/__init__.py b/watchdog/src/watchdog/briefkasten_watchdog/__init__.py index <HASH>..<HASH> 100644 --- a/watchdog/src/watchdog/briefkasten_watchdog/__init__.py +++ b/watchdog/src/watchdog/briefkasten_watchdog/__init__.py @@ -144,7 +144,7 @@ def main(): # read...
Don't keep the data in a subfolder makes setup of the container easier and a single file inside a folder doesn't really make sense, anyway
py
diff --git a/sos/plugins/psacct.py b/sos/plugins/psacct.py index <HASH>..<HASH> 100644 --- a/sos/plugins/psacct.py +++ b/sos/plugins/psacct.py @@ -17,5 +17,13 @@ from sos.plugins import Plugin, RedHatPlugin class psacct(Plugin, RedHatPlugin): """Process accounting related information """ + + optionList = ...
Do not collect archived accounting files in psacct module
py
diff --git a/astroplan/observer.py b/astroplan/observer.py index <HASH>..<HASH> 100644 --- a/astroplan/observer.py +++ b/astroplan/observer.py @@ -1466,8 +1466,8 @@ class Observer(object): >>> from astropy.time import Time >>> apo = Observer.at_site("APO") >>> time = Time("2015-08-29 18:35") ...
Removing test from line that triggers IERS warning
py
diff --git a/cwltool/draft2tool.py b/cwltool/draft2tool.py index <HASH>..<HASH> 100644 --- a/cwltool/draft2tool.py +++ b/cwltool/draft2tool.py @@ -163,14 +163,14 @@ class CommandLineTool(Process): # map files to assigned path inside a container. We need to also explicitly # walk over input as implic...
Tweak @chapmanb's fix for input file mapping
py
diff --git a/eventsourcing/infrastructure/sqlalchemy/activerecords.py b/eventsourcing/infrastructure/sqlalchemy/activerecords.py index <HASH>..<HASH> 100644 --- a/eventsourcing/infrastructure/sqlalchemy/activerecords.py +++ b/eventsourcing/infrastructure/sqlalchemy/activerecords.py @@ -127,10 +127,6 @@ class SQLAlchemy...
Improved test coverage (not sure how to test the delete exception handling, and this isn't really something for production, so removed it at least for now).
py
diff --git a/yandextank/stepper/util.py b/yandextank/stepper/util.py index <HASH>..<HASH> 100644 --- a/yandextank/stepper/util.py +++ b/yandextank/stepper/util.py @@ -209,7 +209,7 @@ class HttpOpener(object): stream = requests.get(self.url, stream=True, verify=False) if stream.status_code == 200: ...
We still need to decode content for ungzipped data But we have to read more from stream so that we can be sure to receive those 2 bytes we need
py
diff --git a/shap/plots/force.py b/shap/plots/force.py index <HASH>..<HASH> 100644 --- a/shap/plots/force.py +++ b/shap/plots/force.py @@ -12,6 +12,7 @@ import base64 import numpy as np import scipy.cluster import collections +import warnings from ..common import convert_to_link, Instance, Model, Data, DenseData, L...
import warnings to comply with jupyter notebooks
py
diff --git a/katversion/version.py b/katversion/version.py index <HASH>..<HASH> 100644 --- a/katversion/version.py +++ b/katversion/version.py @@ -199,8 +199,8 @@ def get_version_from_unpacked_sdist(path): try: with open(os.path.join(path, 'PKG-INFO')) as f: data = f.read() - except Except...
Replace generic Exception with IOError
py
diff --git a/ent/ent.py b/ent/ent.py index <HASH>..<HASH> 100644 --- a/ent/ent.py +++ b/ent/ent.py @@ -97,7 +97,8 @@ class Ent(object): if t == cls: # same class, create new copy - return cls({k: cls.load(v) for k, v in data.__dict__.items()}) + return cls({k: cls.load(v, p...
Promote inner ents recursively
py
diff --git a/cirq-core/cirq/protocols/resolve_parameters.py b/cirq-core/cirq/protocols/resolve_parameters.py index <HASH>..<HASH> 100644 --- a/cirq-core/cirq/protocols/resolve_parameters.py +++ b/cirq-core/cirq/protocols/resolve_parameters.py @@ -150,7 +150,7 @@ def resolve_parameters( Returns: a gate or ...
Link out to ParamResolver (#<I>)
py
diff --git a/pysd/py_backend/vensim/vensim2py.py b/pysd/py_backend/vensim/vensim2py.py index <HASH>..<HASH> 100644 --- a/pysd/py_backend/vensim/vensim2py.py +++ b/pysd/py_backend/vensim/vensim2py.py @@ -236,7 +236,7 @@ def get_equation_components(equation_str): subscript = basic_id / escape_group - basic_id...
Implement support to use single quote and dollar signs in vensim variable names (<URL>
py
diff --git a/python/lib_gps_exif.py b/python/lib_gps_exif.py index <HASH>..<HASH> 100755 --- a/python/lib_gps_exif.py +++ b/python/lib_gps_exif.py @@ -141,7 +141,7 @@ class PILExifReader: if gps_info is None: return None - for tag in ('GPSTrack', 'DSC07558.JPG'): + for tag in ('GPS...
The tag GPSSpeed is now preferred over GPSTrack. Both may be missing. Fixes a bad commit, where a tag was replaced by an image name.
py
diff --git a/halng/commands.py b/halng/commands.py index <HASH>..<HASH> 100644 --- a/halng/commands.py +++ b/halng/commands.py @@ -115,4 +115,4 @@ class ConsoleCommand(Command): sys.exit(0) b.learn(cmd) - print b.reply(cmd).capitalize() + print b.reply(cmd).capitali...
Encode reply output as utf-8. Fixes UnicodeDecodeErrors when converting non-ascii output.
py
diff --git a/src/pyctools/components/plumbing/collator.py b/src/pyctools/components/plumbing/collator.py index <HASH>..<HASH> 100644 --- a/src/pyctools/components/plumbing/collator.py +++ b/src/pyctools/components/plumbing/collator.py @@ -27,6 +27,8 @@ numbers are used to ensure that only co-timed frames are merged. ...
Bug fix: forgot to import NumPy
py
diff --git a/jax/api.py b/jax/api.py index <HASH>..<HASH> 100644 --- a/jax/api.py +++ b/jax/api.py @@ -1997,7 +1997,7 @@ def make_jaxpr(fun: Callable, wrapped = lu.wrap_init(fun) if static_argnums: dyn_argnums = [i for i in range(len(args)) if i not in static_argnums] - wrapped, _ = argnums_partia...
Fix a bug in `make_jaxpr`, as static-arguments should be passed as is
py
diff --git a/runcommands/commands/release.py b/runcommands/commands/release.py index <HASH>..<HASH> 100644 --- a/runcommands/commands/release.py +++ b/runcommands/commands/release.py @@ -213,7 +213,7 @@ def release(package: 'Name of package directory (relative to CWD)', if create_tag: printer.head...
In release command, use tag name when set Previously, the release version would always be used, even if an explicit tag name was specified.
py
diff --git a/tests/test_Write.py b/tests/test_Write.py index <HASH>..<HASH> 100644 --- a/tests/test_Write.py +++ b/tests/test_Write.py @@ -16,7 +16,7 @@ def test_WriteAV(network_and_devices): test_device = network_and_devices.test_device old_value = test_device["AV"].value test_device["AV"] = 11.2 - #...
Added delay in test to bypass cache
py
diff --git a/pysc2/lib/features.py b/pysc2/lib/features.py index <HASH>..<HASH> 100644 --- a/pysc2/lib/features.py +++ b/pysc2/lib/features.py @@ -643,14 +643,16 @@ class Features(object): [unit_vec(u) for u in ui.multi.units], [None, UnitLayer]) if ui.cargo and ui.cargo.passengers: - out["...
Fixed single select scenarios where NamedNumpyArray was not used. PySC2: Import of refs/pull/<I>/head PiperOrigin-RevId: <I>
py
diff --git a/packages/vaex-core/vaex/datatype.py b/packages/vaex-core/vaex/datatype.py index <HASH>..<HASH> 100644 --- a/packages/vaex-core/vaex/datatype.py +++ b/packages/vaex-core/vaex/datatype.py @@ -42,6 +42,8 @@ class DataType: return self.is_integer if other == list: return self...
✨ DataType has is_struct test support
py
diff --git a/generate.py b/generate.py index <HASH>..<HASH> 100644 --- a/generate.py +++ b/generate.py @@ -3,7 +3,9 @@ import os INCLUDE = ['/usr/include/nanomsg', '/usr/local/include/nanomsg'] if 'CPATH' in os.environ: - INCLUDE += [os.path.join(p, 'nanomsg') for p in os.getenv('CPATH').split(os.pathsep)] + ...
Fix line length in CPATH processing
py
diff --git a/scout/constants/indexes.py b/scout/constants/indexes.py index <HASH>..<HASH> 100644 --- a/scout/constants/indexes.py +++ b/scout/constants/indexes.py @@ -84,6 +84,7 @@ INDEXES = { background=True, ), IndexModel([("sanger_ordered", ASCENDING)], name="sanger", background=True, ...
Also variant_id for causatives gt query
py
diff --git a/application/briefkasten/views.py b/application/briefkasten/views.py index <HASH>..<HASH> 100644 --- a/application/briefkasten/views.py +++ b/application/briefkasten/views.py @@ -10,10 +10,6 @@ title = "ZEIT ONLINE Briefkasten" version = pkg_resources.get_distribution("briefkasten").version -attachment...
drive-by cleanup: these are no longer used
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -16,7 +16,7 @@ with open('requirements.txt', 'r') as f: setup( name='EmbyPy', - version='0.4.5.2', + version='0.5.0.0', author='Andriy Zasypkin', author_email='AndriyZasypkin@gmail.com', descriptio...
update to <I> - some jellyfin support - obj.url is not a coroutine - some fixes
py
diff --git a/buildbot/changes/gitpoller.py b/buildbot/changes/gitpoller.py index <HASH>..<HASH> 100644 --- a/buildbot/changes/gitpoller.py +++ b/buildbot/changes/gitpoller.py @@ -71,7 +71,8 @@ class GitPoller(base.ChangeSource): self.running = True def stopService(self): - self.loop.stop() + ...
only stop the loopingcall if we were running (avoid AssertionError at master shutdown if we've previously stopped)
py
diff --git a/tests.py b/tests.py index <HASH>..<HASH> 100644 --- a/tests.py +++ b/tests.py @@ -3960,6 +3960,11 @@ class FieldTypeTestCase(ModelTestCase): else: self.assertEqual(nmf2.time_field, t2) + def test_date_as_string(self): + nm1 = NullModel.create(date_field='2014-01-02') + ...
Test that date can be entered as a string.
py
diff --git a/tests/test_jp2k.py b/tests/test_jp2k.py index <HASH>..<HASH> 100644 --- a/tests/test_jp2k.py +++ b/tests/test_jp2k.py @@ -1154,8 +1154,11 @@ class TestJp2k_write(fixtures.MetadataBase): # That first image should be lossless. self.assertTrue(np.isinf(psnr[0])) + # None of the subs...
Fix test bug for psnr Have to diff the psnr values, otherwise it doesn't necessarily prove anything. Should not allow infs in subsequent images.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -19,8 +19,7 @@ class build_ext(_build_ext): self.include_dirs.append(numpy.get_include()) # # This can be loosen probably, though it's fine I think -min_cython_ver = '0.24.0' - +# min_cython_ver = '0.24.0' #...
Remove cython min version temporarily.
py
diff --git a/launch_control/testing/import_prohibitor.py b/launch_control/testing/import_prohibitor.py index <HASH>..<HASH> 100644 --- a/launch_control/testing/import_prohibitor.py +++ b/launch_control/testing/import_prohibitor.py @@ -54,7 +54,7 @@ class ImportMockingTestCase(TestCase): if isinstan...
Add support to import_prohibitor.py for reloading explicitly listed modules
py
diff --git a/simplekv/crypt.py b/simplekv/crypt.py index <HASH>..<HASH> 100644 --- a/simplekv/crypt.py +++ b/simplekv/crypt.py @@ -48,6 +48,12 @@ class _HMACFileReader(object): def close(self): self.source.close() + def __enter__(self): + return self + + def __exit__(self, *args): + ...
Adds context manager support for with statement to HMACFileReader
py
diff --git a/howdoi/howdoi.py b/howdoi/howdoi.py index <HASH>..<HASH> 100755 --- a/howdoi/howdoi.py +++ b/howdoi/howdoi.py @@ -72,8 +72,8 @@ USER_AGENTS = ('Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:11.0) Gecko/2010 ('Mozilla/5.0 (Windows; Windows NT 6.1) AppleWebKit/536.5 (KHTML, like Gecko) Chro...
Explicitly set English interface in SEARCH_URLS
py
diff --git a/consumer.py b/consumer.py index <HASH>..<HASH> 100644 --- a/consumer.py +++ b/consumer.py @@ -192,7 +192,10 @@ class OpenIDConsumer(object): return time.mktime((now + (valid_to - issued)).utctimetuple()) - def do_error(self, args): - # XXX: get message from args and raise protocol er...
[project @ added do_error implementation to consumer]
py
diff --git a/lwr/lwr_client/transport/standard.py b/lwr/lwr_client/transport/standard.py index <HASH>..<HASH> 100644 --- a/lwr/lwr_client/transport/standard.py +++ b/lwr/lwr_client/transport/standard.py @@ -24,7 +24,6 @@ class Urllib2Transport(object): input = None try: if input_path: - ...
Fix small bug introduced in 0b8e5d<I>e<I>. Opening file twice.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -48,8 +48,7 @@ setup(name='cwltool', 'rdflib >= 4.2.0, < 4.3.0', 'shellescape >= 3.4.1, < 3.5', 'schema-salad >= 2.2.20170111180227, < 3', - 'typing >= 3.5.2, < 3.6', - 'cwlte...
cwltest is not required, don't depend on it
py
diff --git a/gamest/plugins.py b/gamest/plugins.py index <HASH>..<HASH> 100644 --- a/gamest/plugins.py +++ b/gamest/plugins.py @@ -56,9 +56,6 @@ class GameReporterPlugin(GamestSessionPlugin): self.interval = self.config.getint(self.__class__.__name__, 'interval', fallback=30*60*1000) self.job = None ...
Don't bind in superclass.
py
diff --git a/clients/python/tests/test_cbrestclients.py b/clients/python/tests/test_cbrestclients.py index <HASH>..<HASH> 100755 --- a/clients/python/tests/test_cbrestclients.py +++ b/clients/python/tests/test_cbrestclients.py @@ -17,12 +17,6 @@ class GeneClientTest(unittest.TestCase): assert len(res[0]['resul...
Remove test that tests a depricated method and causes tests to crash (not just fail but crash)
py
diff --git a/example/simplecms/views.py b/example/simplecms/views.py index <HASH>..<HASH> 100644 --- a/example/simplecms/views.py +++ b/example/simplecms/views.py @@ -13,6 +13,6 @@ def page_detail(request, path): except Page.DoesNotExist: raise Http404("No page found for the path '%s'" % stripped) - ...
update views.py to use django shortcuts render() was getting an error from the view.py when rendering "unexpected keyword context_instance" - resolved it by replacing deprecated render_to_response() with render()
py