diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/nni/experiment/management.py b/nni/experiment/management.py index <HASH>..<HASH> 100644 --- a/nni/experiment/management.py +++ b/nni/experiment/management.py @@ -2,12 +2,12 @@ # Licensed under the MIT license. from pathlib import Path -import random +from random import Random import string def ge...
Use Random to generate experiment id (#<I>)
py
diff --git a/TexSoup/tex.py b/TexSoup/tex.py index <HASH>..<HASH> 100644 --- a/TexSoup/tex.py +++ b/TexSoup/tex.py @@ -12,11 +12,11 @@ def read(tex, skip_envs=()): :param Union[str,iterable] tex: LaTeX source :return TexEnv: the global environment """ - if isinstance(tex, str): - tex = tex - ...
slightly reorganize main read fun
py
diff --git a/cacheback/decorators.py b/cacheback/decorators.py index <HASH>..<HASH> 100644 --- a/cacheback/decorators.py +++ b/cacheback/decorators.py @@ -1,5 +1,7 @@ -from cacheback.function import FunctionJob +from functools import wraps +from django.utils.decorators import available_attrs +from cacheback.function ...
Use functools.wraps to make sure all attributes of decorated functions are copied over correctly.
py
diff --git a/tests/test_menu_launcher.py b/tests/test_menu_launcher.py index <HASH>..<HASH> 100644 --- a/tests/test_menu_launcher.py +++ b/tests/test_menu_launcher.py @@ -270,12 +270,21 @@ def test_running_menu(): child.sendline('5') child.expect('Return to Vent menu') # go to logs menu - #child.sendl...
testing - checking for number of docker containers, adding <I>, and sendline that number to return back.
py
diff --git a/subliminal/video.py b/subliminal/video.py index <HASH>..<HASH> 100644 --- a/subliminal/video.py +++ b/subliminal/video.py @@ -386,7 +386,7 @@ def scan_video(path, subtitles=True, embedded_subtitles=True, subtitles_dir=None else: logger.debug('MKV has no subtitle track') - ...
Catch all errors when parsing metadata with enzyme
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -10,9 +10,9 @@ try: except ImportError: pass -install_requires = [] +install_requires = ['mock'] lint_requires = ['pep8', 'pyflakes'] -tests_require = ['mock', 'nose', 'unittest2', 'describe==1.0.0beta1'] +tests_requi...
Declare mock as a requiement.
py
diff --git a/bids/modeling/statsmodels.py b/bids/modeling/statsmodels.py index <HASH>..<HASH> 100644 --- a/bids/modeling/statsmodels.py +++ b/bids/modeling/statsmodels.py @@ -649,10 +649,10 @@ class BIDSStatsModelsNodeOutput: continue weights = np.atleast_2d(con['weights']) ...
FIX: Use interpolated name for contrasts
py
diff --git a/padatious/intent_container.py b/padatious/intent_container.py index <HASH>..<HASH> 100644 --- a/padatious/intent_container.py +++ b/padatious/intent_container.py @@ -14,7 +14,7 @@ import multiprocessing as mp from os import mkdir -from os.path import join, isfile, isdir +from os.path import join, isfil...
Make cached version rely only on minor version This prevents regenerating cache on patches
py
diff --git a/salt/modules/cloud.py b/salt/modules/cloud.py index <HASH>..<HASH> 100644 --- a/salt/modules/cloud.py +++ b/salt/modules/cloud.py @@ -41,6 +41,8 @@ def list_sizes(provider='all'): ''' List cloud provider sizes for the given providers + CLI Example: + .. code-block:: bash salt...
Add missing `CLI Example` string.
py
diff --git a/backtrader/feed.py b/backtrader/feed.py index <HASH>..<HASH> 100644 --- a/backtrader/feed.py +++ b/backtrader/feed.py @@ -189,8 +189,11 @@ class FeedBase(six.with_metaclass(metabase.MetaParams, object)): for pname, pvalue in self.p._getitems(): kwargs.setdefault(pname, getattr(self.p,...
Corrections to FeedBase to avoid passing "dataname" twice
py
diff --git a/jpype/_core.py b/jpype/_core.py index <HASH>..<HASH> 100644 --- a/jpype/_core.py +++ b/jpype/_core.py @@ -218,7 +218,7 @@ def startJVM(*args, **kwargs): # Keep the current locale settings, else Java will replace them. import locale categories = [locale.LC_CTYPE, locale.LC_COLLATE...
Remove messages which is not supported on windows
py
diff --git a/pelix/http/basic.py b/pelix/http/basic.py index <HASH>..<HASH> 100644 --- a/pelix/http/basic.py +++ b/pelix/http/basic.py @@ -223,8 +223,11 @@ class _RequestHandler(BaseHTTPRequestHandler): # Not a request handling return object.__getattribute__(self, name) + # Remove dou...
Remove double-slashes when looking for a servlet If the HTTP path starts with a double-slash, like "//debug/toto", the urlparse() method was considering "debug" as a network location, not as a part of the path.
py
diff --git a/tests/test_json_field.py b/tests/test_json_field.py index <HASH>..<HASH> 100644 --- a/tests/test_json_field.py +++ b/tests/test_json_field.py @@ -18,3 +18,16 @@ class JsonFieldTest(TestCase): j = JSONFieldTestModel.objects.create(a=6, j_field=[]) self.assertTrue(isinstance(j.j_field, list...
Add a regression test to make sure floats stored in JSON fields are being serialised correctly.
py
diff --git a/jsonschema.py b/jsonschema.py index <HASH>..<HASH> 100644 --- a/jsonschema.py +++ b/jsonschema.py @@ -223,7 +223,15 @@ class ValidatorMixin(object): def check_schema(cls, schema): for error in cls(cls.META_SCHEMA).iter_errors(schema): schema_error = SchemaError(error.message) - ...
Manually transfer ValidationError attributes to SchemaError
py
diff --git a/disposable_email_checker/forms.py b/disposable_email_checker/forms.py index <HASH>..<HASH> 100644 --- a/disposable_email_checker/forms.py +++ b/disposable_email_checker/forms.py @@ -5,5 +5,5 @@ from django.core import validators from .validators import validate_disposable_email -class DisposableEmailF...
Update form field to EmailField not CharField
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -32,7 +32,7 @@ setuptools.setup( packages=setuptools.find_packages(), scripts=glob.glob('scripts/*'), url='https://github.com/GoogleCloudPlatform/compute-image-packages', - version='2.3.4', + version='2.3....
Bump google_compute_engine to <I>. (#<I>)
py
diff --git a/tests/support/case.py b/tests/support/case.py index <HASH>..<HASH> 100644 --- a/tests/support/case.py +++ b/tests/support/case.py @@ -276,9 +276,9 @@ class ShellTestCase(TestCase, AdaptedConfigurationTestCaseMixin): if 'env' not in popen_kwargs: popen_kwargs['env'] = os.enviro...
Use the code directory instead of cwd for python path
py
diff --git a/release.py b/release.py index <HASH>..<HASH> 100644 --- a/release.py +++ b/release.py @@ -1,7 +1,7 @@ """ This script will walk a developer through the process of cutting a release. -Based on 1 +Based on https://bitbucket.org/cherrypy/cherrypy/wiki/ReleaseProcess To cut a release, simply invoke this...
Correct docstring, unintentionally borked --HG-- branch : cherrypy-<I>.x
py
diff --git a/command/bdist_rpm.py b/command/bdist_rpm.py index <HASH>..<HASH> 100644 --- a/command/bdist_rpm.py +++ b/command/bdist_rpm.py @@ -308,9 +308,8 @@ class bdist_rpm (Command): rpm_args.append('-bb') else: rpm_args.append('-ba') - topdir = os.getcwd() + 'build/rpm' ...
Patch from Harry Henry Gebel: fixes a bit of code that slipped by my overhaul last night.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -51,7 +51,7 @@ else: setup( name='psamm', - version='1.1.1', + version='1.1.2', description='PSAMM metabolic modeling tools', maintainer='Jon Lund Steffensen', maintainer_email='jon_steffensen@uri....
Update PSAMM version in setup.py
py
diff --git a/openfisca_core/entities.py b/openfisca_core/entities.py index <HASH>..<HASH> 100644 --- a/openfisca_core/entities.py +++ b/openfisca_core/entities.py @@ -61,9 +61,9 @@ class PersonEntity(Entity): # Projection person -> person - def role_in(self, entity): + def has_role(self, role, entity): ...
Replace role_in(entity) by has_role(role, entity)
py
diff --git a/lib/svtplay_dl/__init__.py b/lib/svtplay_dl/__init__.py index <HASH>..<HASH> 100644 --- a/lib/svtplay_dl/__init__.py +++ b/lib/svtplay_dl/__init__.py @@ -134,9 +134,7 @@ def get_media(url, options): log.error("Cant find that page: %s", e.reason) return if not stream: - ...
get_media: they to the same thing so better have fewer lines
py
diff --git a/holoviews/core/layer.py b/holoviews/core/layer.py index <HASH>..<HASH> 100644 --- a/holoviews/core/layer.py +++ b/holoviews/core/layer.py @@ -852,10 +852,10 @@ class ViewMap(Map): if isinstance(samples, tuple) or np.isscalar(samples): if dims == 1: lower, upper = (sel...
Fixed undefined variables in ViewMap sample method
py
diff --git a/safe/gui/tools/minimum_needs/needs_profile.py b/safe/gui/tools/minimum_needs/needs_profile.py index <HASH>..<HASH> 100644 --- a/safe/gui/tools/minimum_needs/needs_profile.py +++ b/safe/gui/tools/minimum_needs/needs_profile.py @@ -208,8 +208,9 @@ class NeedsProfile(MinimumNeeds): precision_infl...
Fix #<I> - backported string conversion when reading minimum needs to master branch
py
diff --git a/looper/looper.py b/looper/looper.py index <HASH>..<HASH> 100755 --- a/looper/looper.py +++ b/looper/looper.py @@ -215,7 +215,7 @@ def run(prj, args, remaining_args, interface_manager): # Get the base protocol-to-pipeline mappings if hasattr(sample, "library"): - pipelines = i...
pipelines constructor name is now plural
py
diff --git a/pyinfra/api/inventory.py b/pyinfra/api/inventory.py index <HASH>..<HASH> 100644 --- a/pyinfra/api/inventory.py +++ b/pyinfra/api/inventory.py @@ -127,8 +127,10 @@ class Inventory(object): executor = EXECUTION_CONNECTORS[connector_name] names_data = ALL_CONNECTORS[con...
Ensure group data is properly applied to connector generated hosts. This essentially expands data assigned to `@vagrant` to any host name generated by the connector, ie `@vagrant/ubuntu`.
py
diff --git a/src/ossos-pipeline/ossos/gui/fitsviewer.py b/src/ossos-pipeline/ossos/gui/fitsviewer.py index <HASH>..<HASH> 100644 --- a/src/ossos-pipeline/ossos/gui/fitsviewer.py +++ b/src/ossos-pipeline/ossos/gui/fitsviewer.py @@ -113,7 +113,6 @@ class MPLFitsImageViewer(object): def _refresh_displayed_colormap(se...
Removed unnecessary call to redraw in the matplotlib image viewer's method for refreshing the image colormap. Profiling while tabbing showed the CPU time spent in the refresh colormap method dropped from about <I>% to about 3%.
py
diff --git a/raiden/network/proxies/secret_registry.py b/raiden/network/proxies/secret_registry.py index <HASH>..<HASH> 100644 --- a/raiden/network/proxies/secret_registry.py +++ b/raiden/network/proxies/secret_registry.py @@ -98,7 +98,11 @@ class SecretRegistry: other_result = self.open_secret_transac...
Bugfix: fixed a deadlock As of gevent <I> `gevent.joinall` will deadlock if the same async result is used twice. This is a test script to reproduce the problem: <URL>
py
diff --git a/statsd/client.py b/statsd/client.py index <HASH>..<HASH> 100644 --- a/statsd/client.py +++ b/statsd/client.py @@ -114,3 +114,4 @@ class Pipeline(StatsClient): def send(self): data = '\n'.join(self._stats) self._client._send(data) + self._stats = []
Clear pipeline._stats after send().
py
diff --git a/smartfile/__init__.py b/smartfile/__init__.py index <HASH>..<HASH> 100644 --- a/smartfile/__init__.py +++ b/smartfile/__init__.py @@ -156,8 +156,16 @@ try: return (self.token, self.secret)[index] def is_valid(self): + # Ensure both values don't evaluate to False. ...
Even stricter validation for OAuth tokens.
py
diff --git a/parsl/dataflow/dflow.py b/parsl/dataflow/dflow.py index <HASH>..<HASH> 100644 --- a/parsl/dataflow/dflow.py +++ b/parsl/dataflow/dflow.py @@ -95,6 +95,8 @@ class DataFlowKernel(object): checkpoint_src = checkpointFiles elif self._config and self._config["globals"]["checkpointFiles"]: ...
Minor bug. Variable to be defined even when configs don't set value.
py
diff --git a/tests.py b/tests.py index <HASH>..<HASH> 100644 --- a/tests.py +++ b/tests.py @@ -78,11 +78,11 @@ class DNSTest(unittest2.TestCase): self.channel.query('ipv6.google.com', pycares.QUERY_TYPE_AAAA, cb) self.wait() - #def test_query_cname(self): - # def cb(result, errorno): - #...
Re-enabled CNAME test
py
diff --git a/mongoctl/repository.py b/mongoctl/repository.py index <HASH>..<HASH> 100644 --- a/mongoctl/repository.py +++ b/mongoctl/repository.py @@ -3,6 +3,7 @@ __author__ = 'abdul' import pymongo +import pymongo.read_preferences import config from bson import DBRef @@ -53,9 +54,7 @@ def get_mongoctl_database...
Use MongoClient for mongoctl repo connection
py
diff --git a/xblock/fields.py b/xblock/fields.py index <HASH>..<HASH> 100644 --- a/xblock/fields.py +++ b/xblock/fields.py @@ -25,7 +25,7 @@ from xblock.internal import Nameable __all__ = [ 'BlockScope', 'UserScope', 'Scope', 'ScopeIds', 'Field', - 'Boolean', 'Dict', 'Float', 'Integer', 'List', 'String', ...
Add Set field All hashable types are converted to sets. Override the field constructor so that hashable types are converted to set.
py
diff --git a/bibliopixel/drivers/driver_base.py b/bibliopixel/drivers/driver_base.py index <HASH>..<HASH> 100644 --- a/bibliopixel/drivers/driver_base.py +++ b/bibliopixel/drivers/driver_base.py @@ -95,7 +95,7 @@ class DriverBase(object): self._brightness = brightness return False # Device does NOT s...
Simplify driver_base.py slightly.
py
diff --git a/user_agents/__init__.py b/user_agents/__init__.py index <HASH>..<HASH> 100644 --- a/user_agents/__init__.py +++ b/user_agents/__init__.py @@ -1 +1,3 @@ +VERSION = (0, 1, 0) + from .parsers import parse \ No newline at end of file
Added VERSION to __init__.py.
py
diff --git a/docker/client.py b/docker/client.py index <HASH>..<HASH> 100644 --- a/docker/client.py +++ b/docker/client.py @@ -860,10 +860,6 @@ class Client(requests.Session): if volumes_from is not None: warnings.warn(warning_message.format('volumes_from'), ...
removed DeprecationWarning @shin-
py
diff --git a/nidmresults/objects/contrast.py b/nidmresults/objects/contrast.py index <HASH>..<HASH> 100644 --- a/nidmresults/objects/contrast.py +++ b/nidmresults/objects/contrast.py @@ -259,13 +259,13 @@ SELECT DISTINCT * WHERE { sigma_sq_img = nib.load(self.sigma_sq_file) sigma_sq = sigma_sq...
expl_mean_sq_filename -> self.filename in ContrastExplainedMeanSquareMap
py
diff --git a/macroeco/utility/form_func.py b/macroeco/utility/form_func.py index <HASH>..<HASH> 100644 --- a/macroeco/utility/form_func.py +++ b/macroeco/utility/form_func.py @@ -406,7 +406,9 @@ def fractionate(datayears, wid_len, step, col_names): def add_data_fields(data_list, fields, values): '''Add fields to ...
Merged and reformatted remaining data
py
diff --git a/nodeconductor/iaas/migrations/0017_init_new_quotas.py b/nodeconductor/iaas/migrations/0017_init_new_quotas.py index <HASH>..<HASH> 100644 --- a/nodeconductor/iaas/migrations/0017_init_new_quotas.py +++ b/nodeconductor/iaas/migrations/0017_init_new_quotas.py @@ -25,14 +25,18 @@ def init_quotas(apps, schema_...
Use only default methods for quota creation
py
diff --git a/pysat/_orbits.py b/pysat/_orbits.py index <HASH>..<HASH> 100644 --- a/pysat/_orbits.py +++ b/pysat/_orbits.py @@ -289,7 +289,14 @@ class Orbits(object): while True: try: self.next() - yield self.inst + + # Ensure that garbage collection d...
BUG: Return copy when iterating by orbit
py
diff --git a/rinoh/font/type1.py b/rinoh/font/type1.py index <HASH>..<HASH> 100644 --- a/rinoh/font/type1.py +++ b/rinoh/font/type1.py @@ -72,6 +72,9 @@ class AdobeFontMetricsParser(dict): HEX_NUMBER = re.compile(r'<([\da-f]+)>', re.I) def __init__(self, file): + self._glyphs = {} + self._liga...
Initialization of these members should have moved to AdobeFontMetricsParser with the parsing code
py
diff --git a/ELiDE/ELiDE/statlist.py b/ELiDE/ELiDE/statlist.py index <HASH>..<HASH> 100644 --- a/ELiDE/ELiDE/statlist.py +++ b/ELiDE/ELiDE/statlist.py @@ -248,7 +248,6 @@ class AbstractStatListView(RecycleView): ctrld = dict(self.control) ctrld[key] = control self.remote['_control'] =...
Get rid of a truly baffling canvas.clear()
py
diff --git a/cyphi/utils.py b/cyphi/utils.py index <HASH>..<HASH> 100644 --- a/cyphi/utils.py +++ b/cyphi/utils.py @@ -335,11 +335,12 @@ def bipartition_indices(N): # Return on empty input if N <= 0: return result - for bitstring in [bin(i)[2:].zfill(N)[::-1] - for i in range(...
Use bit manipulation in bipartition_indices
py
diff --git a/zhmcclient/_session.py b/zhmcclient/_session.py index <HASH>..<HASH> 100644 --- a/zhmcclient/_session.py +++ b/zhmcclient/_session.py @@ -921,7 +921,7 @@ class Session(object): elif result.status_code == 202: if result.content == '': # Some operations (e.g...
Fixed incorrect HMC method in a comment on <I> processing Details: - There was a comment in the Session class when processing HTTP status <I> that listed HMC operations that return <I> without response body. That list missed one operation ('Cancel Job') and listed one operation by mistake ('Mount Virtual Media')...
py
diff --git a/command/build_py.py b/command/build_py.py index <HASH>..<HASH> 100644 --- a/command/build_py.py +++ b/command/build_py.py @@ -55,6 +55,10 @@ class BuildPy (Command): # input and output filenames and checking for missing # input files. + # it's ok not to have *any* py files, right...
Patch from Perry Stoll: OK for list of modules to be empty.
py
diff --git a/barf/arch/x86/x86translator.py b/barf/arch/x86/x86translator.py index <HASH>..<HASH> 100644 --- a/barf/arch/x86/x86translator.py +++ b/barf/arch/x86/x86translator.py @@ -3576,6 +3576,21 @@ class X86Translator(Translator): tb.write(instruction.operands[0], tmp0) + def _translate_movdqu(self,...
Add support for movdqu instruction
py
diff --git a/pgmpy/inference/dbn_inference.py b/pgmpy/inference/dbn_inference.py index <HASH>..<HASH> 100644 --- a/pgmpy/inference/dbn_inference.py +++ b/pgmpy/inference/dbn_inference.py @@ -51,19 +51,19 @@ class DBNInference(Inference): (('Y', 1), ('X', 1)), (('Z', 1), ('X', 1))] - Referenc...
Fixed small incompatibility with python2. Fixed docstr indentation
py
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py index <HASH>..<HASH> 100644 --- a/cmd2/cmd2.py +++ b/cmd2/cmd2.py @@ -2092,8 +2092,7 @@ class Cmd(cmd.Cmd): if statement.output == constants.REDIRECTION_APPEND: temp_file = tempfile.NamedTemporaryFile(mode='w', delete=False) ...
Removed unecessary line of code
py
diff --git a/jptsmeta.py b/jptsmeta.py index <HASH>..<HASH> 100644 --- a/jptsmeta.py +++ b/jptsmeta.py @@ -26,6 +26,7 @@ class JPTSMeta(object): self.getFrontElements() self.parseJournalMetadata() self.parseArticleMetadata() + self.parseBackData() def getTopElements(self): ...
Added parseBackData() to the base class with a docstring, but no functionality
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -47,7 +47,7 @@ LONG_DESCRIPTION = package.__doc__ builtins._ASTROPY_PACKAGE_NAME_ = PACKAGENAME # VERSION should be PEP386 compatible (http://www.python.org/dev/peps/pep-0386) -VERSION = '0.4.dev' +VERSION = '0.4' # Ind...
Preparing release <I>
py
diff --git a/subconvert/utils/SubFile.py b/subconvert/utils/SubFile.py index <HASH>..<HASH> 100644 --- a/subconvert/utils/SubFile.py +++ b/subconvert/utils/SubFile.py @@ -138,8 +138,11 @@ class File: tmpFilePath = "%s.tmp" % filePath bakFilePath = "%s.bak" % filePath - with open(tmpFilePath, ...
Flush temporary file on atomic write.
py
diff --git a/pipenv/vendor/pexpect/popen_spawn.py b/pipenv/vendor/pexpect/popen_spawn.py index <HASH>..<HASH> 100644 --- a/pipenv/vendor/pexpect/popen_spawn.py +++ b/pipenv/vendor/pexpect/popen_spawn.py @@ -40,7 +40,7 @@ class PopenSpawn(SpawnBase): kwargs['creationflags'] = subprocess.CREATE_NEW_PROCESS_G...
Test for posix compliance by checking posix compliance
py
diff --git a/pliers/extractors/text.py b/pliers/extractors/text.py index <HASH>..<HASH> 100644 --- a/pliers/extractors/text.py +++ b/pliers/extractors/text.py @@ -550,10 +550,6 @@ class BertSequenceEncodingExtractor(BertExtractor): return_metadata=False, model_kwargs=None, ...
check pooling arg before superclass initializer
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -16,7 +16,7 @@ using a package manager (apt, yum, etc), normally named: python-setuptools INSTALL_REQUIRES = ( - 'gevent>1', + 'gevent>=1.5', 'paramiko>=2.2,<3', # 2.2 (2017) adds Ed25519Key 'click>2', ...
Bump gevent version requirement to pass tests
py
diff --git a/pylibscrypt/pylibscrypt.py b/pylibscrypt/pylibscrypt.py index <HASH>..<HASH> 100755 --- a/pylibscrypt/pylibscrypt.py +++ b/pylibscrypt/pylibscrypt.py @@ -159,6 +159,8 @@ def scrypt_mcf_check(mcf, password): raise TypeError if not isinstance(password, bytes): raise TypeError + if l...
Fall back to python MCF handling if MCF isn't one libscrypt expects
py
diff --git a/introspeqt/__init__.py b/introspeqt/__init__.py index <HASH>..<HASH> 100644 --- a/introspeqt/__init__.py +++ b/introspeqt/__init__.py @@ -18,6 +18,8 @@ class Handler(QtCore.QObject, object): widget_type = type(obj).__name__ event_type = str(event.type()) obj_name = ob...
Added changes to the 'eventFilter' method of the 'Handler' object so it an object does not have a objectName, the string '<Unknown objectName>' will be used instead.
py
diff --git a/vlcp/service/manage/webapi.py b/vlcp/service/manage/webapi.py index <HASH>..<HASH> 100644 --- a/vlcp/service/manage/webapi.py +++ b/vlcp/service/manage/webapi.py @@ -92,6 +92,8 @@ class WebAPI(Module): _default_denytargets = None _default_namedstruct = True _default_humanread = True + _de...
convert bytes to str in Python 3
py
diff --git a/buildbot/test/runs/test_ec2buildslave.py b/buildbot/test/runs/test_ec2buildslave.py index <HASH>..<HASH> 100644 --- a/buildbot/test/runs/test_ec2buildslave.py +++ b/buildbot/test/runs/test_ec2buildslave.py @@ -419,6 +419,8 @@ class Initialization(Mixin, unittest.TestCase): if h in os.environ: ...
don't try to reset $HOME if it wasn't set to begin with
py
diff --git a/mockupdb/__init__.py b/mockupdb/__init__.py index <HASH>..<HASH> 100755 --- a/mockupdb/__init__.py +++ b/mockupdb/__init__.py @@ -1606,16 +1606,20 @@ def raise_args_err(message='bad arguments', error_class=TypeError): raise error_class(message + ': ' + format_call(frame)) -def interactive_server(p...
interactive_server()'s responders are more configurable. Makes it a more useful base on which to build servers like Mongo Conduction.
py
diff --git a/misc/git-hooks/pre-receive.py b/misc/git-hooks/pre-receive.py index <HASH>..<HASH> 100755 --- a/misc/git-hooks/pre-receive.py +++ b/misc/git-hooks/pre-receive.py @@ -6,12 +6,16 @@ import sys tsuru_host = os.environ.get("TSURU_HOST", "") +token = os.environ.get("TSURU_TOKEN", "") +owner = os.environ.ge...
misc/git-hooks/pre-receive: use token and token owner in requests Related to #<I>.
py
diff --git a/pyphi/models/fmt.py b/pyphi/models/fmt.py index <HASH>..<HASH> 100644 --- a/pyphi/models/fmt.py +++ b/pyphi/models/fmt.py @@ -105,7 +105,7 @@ def fmt_part(part, subsystem=None): ).format(numer=numer, divider=divider, denom=denom, width=width) -def fmt_partition(partition, subsystem=None): +def fmt...
Rename `fmt_partition` to `fmt_bipartition`
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,7 @@ from setuptools import setup setup(name='pymysensors', - version='0.2', + version='0.3', description='Python API for talking to a MySensors gateway', url='https://github.com/theolind/py...
Bump the version number to <I>.
py
diff --git a/grimoire_elk/enriched/jira.py b/grimoire_elk/enriched/jira.py index <HASH>..<HASH> 100644 --- a/grimoire_elk/enriched/jira.py +++ b/grimoire_elk/enriched/jira.py @@ -86,20 +86,20 @@ class JiraEnrich(Enrich): def get_sh_identity(self, item, identity_field=None): """ Return a Sorting Hat identi...
[enriched-jira] Handle missing identity data This code handles missing identity data in Jira items
py
diff --git a/bcbio/variation/annotation.py b/bcbio/variation/annotation.py index <HASH>..<HASH> 100644 --- a/bcbio/variation/annotation.py +++ b/bcbio/variation/annotation.py @@ -15,7 +15,8 @@ def annotate_effects(orig_file, snpeff_file, genome_file, config): """ broad_runner = broad.runner_from_config(config...
Avoid allowing snpEff <I> with GATK variant annotation
py
diff --git a/geoviews/plotting/mpl/__init__.py b/geoviews/plotting/mpl/__init__.py index <HASH>..<HASH> 100644 --- a/geoviews/plotting/mpl/__init__.py +++ b/geoviews/plotting/mpl/__init__.py @@ -6,16 +6,6 @@ from cartopy import crs as ccrs from holoviews.core import (Store, HoloMap, Layout, Overlay, ...
Removed unneccessary imports
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -23,7 +23,7 @@ setup( author_email='carl@oddbird.net', url='https://github.com/carljm/django-model-utils/', packages=find_packages(), - install_requires=['django>=1.4.2'], + install_requires=['Django>=1.4....
Fix case of Django dependency. Thanks Travis Swicegood.
py
diff --git a/dev/provider_packages/prepare_provider_packages.py b/dev/provider_packages/prepare_provider_packages.py index <HASH>..<HASH> 100755 --- a/dev/provider_packages/prepare_provider_packages.py +++ b/dev/provider_packages/prepare_provider_packages.py @@ -2102,6 +2102,7 @@ KNOWN_DEPRECATED_MESSAGES: Set[Tuple[st...
Try to fix deprecation warnings from distutils update (#<I>)
py
diff --git a/stats.py b/stats.py index <HASH>..<HASH> 100644 --- a/stats.py +++ b/stats.py @@ -49,7 +49,7 @@ def flattendata(data): # data is either an array (possibly a maskedarray) or a list of arrays if isinstance(data,np.ndarray): return data - elif isinstance(data,list): + elif isinstance(...
added isinstance of tuple
py
diff --git a/telethon/telegram_client.py b/telethon/telegram_client.py index <HASH>..<HASH> 100644 --- a/telethon/telegram_client.py +++ b/telethon/telegram_client.py @@ -214,6 +214,13 @@ class TelegramClient: self._reconnect_to_dc(error.new_dc) return self.invoke(request, timeout=timeout, thr...
Trigger automatic reconnection if server kicks us (#<I>)
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -19,6 +19,9 @@ setup(name = 'sgp4', 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Science/Research', 'License :: OSI Approved :: MIT License', + 'Programming Language ::...
Trove classifiers for supported Python 2 versions
py
diff --git a/src/amcrest/ptz.py b/src/amcrest/ptz.py index <HASH>..<HASH> 100644 --- a/src/amcrest/ptz.py +++ b/src/amcrest/ptz.py @@ -34,6 +34,11 @@ class Ptz: ) return ret.content.decode('utf-8') + @property + def ptz_presets_count(self, channel=0): + ret = self.ptz_presets_list() + ...
Added property to return counter for PTZ preset saved
py
diff --git a/conversejs/boshclient.py b/conversejs/boshclient.py index <HASH>..<HASH> 100644 --- a/conversejs/boshclient.py +++ b/conversejs/boshclient.py @@ -121,7 +121,8 @@ class BOSHClient(object): return body def send_request(self, xml_stanza): - if isinstance(xml_stanza, ET.Element): + ...
fix: ET.Element is a function in python<I> while a class in python<I>, and they have different signature.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -18,7 +18,7 @@ with open('README.rst') as f: try: requirements = [line.rstrip('\n') for line in open(os.path.join('fbchat.egg-info', 'requires.txt'))] -except FileNotFoundError: +except IOError: requirements = [li...
replace FileNotFoundError with IOError so it can work in Py2
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -40,7 +40,7 @@ if __name__ == '__main__': setup( name='varcode', packages=find_packages(), - version="0.3.14", + version="0.3.15", description="Variant annotation in Python", ...
Bump pyensembl/varcode version
py
diff --git a/plugins/function_strings.py b/plugins/function_strings.py index <HASH>..<HASH> 100644 --- a/plugins/function_strings.py +++ b/plugins/function_strings.py @@ -19,8 +19,8 @@ class FunctionStrings(idaapi.plugin_t): def run(self, arg): function = sark.Function(idc.here()) - print "String...
Fixed a bug in the finction strings plugin. It used `print` instead of `idaapi.msg`.
py
diff --git a/pyecobee/__init__.py b/pyecobee/__init__.py index <HASH>..<HASH> 100644 --- a/pyecobee/__init__.py +++ b/pyecobee/__init__.py @@ -292,7 +292,7 @@ class Ecobee(object): "selectionType": "thermostats", "selectionMatch": self.thermostats[index]['identifier']}, ...
Forgot a comma
py
diff --git a/ccmlib/node.py b/ccmlib/node.py index <HASH>..<HASH> 100644 --- a/ccmlib/node.py +++ b/ccmlib/node.py @@ -1342,7 +1342,7 @@ class Node(object): def _get_directories(self): dirs = {} - for i in ['data', 'commitlogs', 'saved_caches', 'logs', 'conf', 'bin']: + for i in ['data', '...
Adds creation of hints directory, introduced in CASSANDRA-<I>
py
diff --git a/tests/test_train_dictionary.py b/tests/test_train_dictionary.py index <HASH>..<HASH> 100644 --- a/tests/test_train_dictionary.py +++ b/tests/test_train_dictionary.py @@ -7,6 +7,7 @@ import zstandard as zstd from . common import ( generate_samples, make_cffi, + random_input_data, ) if sys....
tests: use random_input_data() in test zstd <I> doesn't like generate_samples() for some reason.
py
diff --git a/mongodb_migrations/cli.py b/mongodb_migrations/cli.py index <HASH>..<HASH> 100644 --- a/mongodb_migrations/cli.py +++ b/mongodb_migrations/cli.py @@ -61,7 +61,7 @@ class MigrationManager(object): print(e.__class__) if hasattr(e, 'message'): ...
Raise the error to get the traceback instead of just class name
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -17,7 +17,7 @@ setup( packages=['internetarchive'], entry_points = dict( console_scripts = [ - 'internetarchive = bin.archive:main', + 'internetarchive = bin.internetarchive_cli:main', ...
Renamed bin/archive.py to bin/internetarchive_cli.py, reflect these changes in setup.py
py
diff --git a/tests/test_asymetric_gost.py b/tests/test_asymetric_gost.py index <HASH>..<HASH> 100644 --- a/tests/test_asymetric_gost.py +++ b/tests/test_asymetric_gost.py @@ -55,8 +55,14 @@ class TestUtil(unittest.TestCase): # test generate gost key pair gen_mechanism = PyKCS11.Mechanism(PyKCS11.CKM_G...
test_asymetric_gost: GOST not supported by SoftHSMv2 on Windows?
py
diff --git a/keyboard/keyboard.py b/keyboard/keyboard.py index <HASH>..<HASH> 100644 --- a/keyboard/keyboard.py +++ b/keyboard/keyboard.py @@ -342,7 +342,7 @@ def stash_state(): def restore_state(scan_codes): """ Given a list of scan_codes ensures these keys, and only these keys, are - pressed. + press...
Update docs for restore_state
py
diff --git a/openquake/calculators/extract.py b/openquake/calculators/extract.py index <HASH>..<HASH> 100644 --- a/openquake/calculators/extract.py +++ b/openquake/calculators/extract.py @@ -68,7 +68,10 @@ def get_info(dstore): stats = {stat: s for s, stat in enumerate(oq.hazard_stats())} loss_types = {lt: l ...
Compatibility with <I> [skip CI]
py
diff --git a/scripts/make-average-lcs.py b/scripts/make-average-lcs.py index <HASH>..<HASH> 100755 --- a/scripts/make-average-lcs.py +++ b/scripts/make-average-lcs.py @@ -114,6 +114,9 @@ for averagetype in averagetypes: photoevent += [thisevent['name'] for x in prange] phototype += [(x['upperlimit'] i...
Skip SNe with no photometry.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -137,6 +137,7 @@ setup( 'boto', 'jellyfish', 'nilsimsa >= 0.3', + 'regex != 2014.08.28', 'chromium_compact_language_detector', 'sortedcollection', 'python-docx',
we should be using the new regex wherever we use `re`
py
diff --git a/salt/utils/schedule.py b/salt/utils/schedule.py index <HASH>..<HASH> 100644 --- a/salt/utils/schedule.py +++ b/salt/utils/schedule.py @@ -1298,8 +1298,11 @@ class Schedule(object): if 'skip_explicit' in data: _skip_explicit = [] for _skip_time in d...
`skip_explicit` objects might already be datetime objects
py
diff --git a/salt/renderers/py.py b/salt/renderers/py.py index <HASH>..<HASH> 100644 --- a/salt/renderers/py.py +++ b/salt/renderers/py.py @@ -1,7 +1,7 @@ ''' Pure python state renderer -The sls file should contain a function called ``sls`` which returns high state +The sls file should contain a function called ``r...
The function appears to be called run now, and not sls.
py
diff --git a/seleniumbase/behave/behave_sb.py b/seleniumbase/behave/behave_sb.py index <HASH>..<HASH> 100644 --- a/seleniumbase/behave/behave_sb.py +++ b/seleniumbase/behave/behave_sb.py @@ -761,6 +761,8 @@ def dashboard_pre_processing(): command_args = sys.argv[1:] command_string = " ".join(command_args) +...
Update Dashboard processing with "behave" tests
py
diff --git a/telethon/tl/session.py b/telethon/tl/session.py index <HASH>..<HASH> 100644 --- a/telethon/tl/session.py +++ b/telethon/tl/session.py @@ -231,6 +231,12 @@ class Session: def _update_session_table(self): with self._db_lock: c = self._conn.cursor() + # While we can save ...
Save only one auth_key on the database again
py
diff --git a/src/foremast/securitygroup/create_securitygroup.py b/src/foremast/securitygroup/create_securitygroup.py index <HASH>..<HASH> 100644 --- a/src/foremast/securitygroup/create_securitygroup.py +++ b/src/foremast/securitygroup/create_securitygroup.py @@ -194,11 +194,21 @@ class SpinnakerSecurityGroup(object): ...
feat: $self in security group config resolves to application
py
diff --git a/aikif/agents/explore/agent_explore_grid.py b/aikif/agents/explore/agent_explore_grid.py index <HASH>..<HASH> 100644 --- a/aikif/agents/explore/agent_explore_grid.py +++ b/aikif/agents/explore/agent_explore_grid.py @@ -90,7 +90,8 @@ class ExploreAgent(agt.Agent): return s...
stop saving temp files in root folder - agent.txt
py
diff --git a/torchvision/models/detection/ssdlite.py b/torchvision/models/detection/ssdlite.py index <HASH>..<HASH> 100644 --- a/torchvision/models/detection/ssdlite.py +++ b/torchvision/models/detection/ssdlite.py @@ -252,7 +252,7 @@ def ssdlite320_mobilenet_v3_large( "detections_per_img": 300, "topk...
fix docs (#<I>)
py
diff --git a/worker/buildbot_worker/scripts/runner.py b/worker/buildbot_worker/scripts/runner.py index <HASH>..<HASH> 100644 --- a/worker/buildbot_worker/scripts/runner.py +++ b/worker/buildbot_worker/scripts/runner.py @@ -95,7 +95,7 @@ class RestartOptions(MakerBase): class UpgradeWorkerOptions(MakerBase): - s...
fix missed upgrade_slave module rename
py
diff --git a/openquake/risklib/riskinput.py b/openquake/risklib/riskinput.py index <HASH>..<HASH> 100644 --- a/openquake/risklib/riskinput.py +++ b/openquake/risklib/riskinput.py @@ -384,8 +384,10 @@ class EpsilonMatrix1(object): # item[0] is the asset index, item[1] the event index # the epsi...
Cleanup [skip CI]
py
diff --git a/statsd/gauge.py b/statsd/gauge.py index <HASH>..<HASH> 100644 --- a/statsd/gauge.py +++ b/statsd/gauge.py @@ -1,5 +1,6 @@ import statsd -import decimal + +from . import compat class Gauge(statsd.Client): @@ -14,7 +15,7 @@ class Gauge(statsd.Client): client name) :keyword value: ...
Use compat.NUM_TYPES due to removal of long in py3k
py
diff --git a/bootstrap.py b/bootstrap.py index <HASH>..<HASH> 100644 --- a/bootstrap.py +++ b/bootstrap.py @@ -7,7 +7,6 @@ egg-info command to flesh out the egg-info directory. from __future__ import unicode_literals -import argparse import os import io import re @@ -92,16 +91,12 @@ def install_deps(): def...
In bootstrap, defer installation of dependencies if unneeded. Ref #<I>.
py
diff --git a/ryu/app/ws_topology.py b/ryu/app/ws_topology.py index <HASH>..<HASH> 100644 --- a/ryu/app/ws_topology.py +++ b/ryu/app/ws_topology.py @@ -59,7 +59,7 @@ class WebSocketTopology(app_manager.RyuApp): self.rpc_clients = [] wsgi = kwargs['wsgi'] - wsgi.register(TopologyController, {'a...
ws_topology: Avoid controller name confliction
py
diff --git a/RAPIDpy/gis/weight.py b/RAPIDpy/gis/weight.py index <HASH>..<HASH> 100644 --- a/RAPIDpy/gis/weight.py +++ b/RAPIDpy/gis/weight.py @@ -200,6 +200,10 @@ def RTreeCreateWeightTable(lsm_grid_lat, lsm_grid_lon, 'index_lsm_grid_lat': index_lsm_grid_lat}) ...
added check to see if intersection found for rapid rivid
py
diff --git a/djstripe/migrations/0012_alter_transfer_destination_data_1.py b/djstripe/migrations/0012_alter_transfer_destination_data_1.py index <HASH>..<HASH> 100644 --- a/djstripe/migrations/0012_alter_transfer_destination_data_1.py +++ b/djstripe/migrations/0012_alter_transfer_destination_data_1.py @@ -18,8 +18,8 @@...
Fixed the incorrect djstripe_id Column Cast from CHAR to VARCHAR
py