diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/irc3/rfc.py b/irc3/rfc.py index <HASH>..<HASH> 100644 --- a/irc3/rfc.py +++ b/irc3/rfc.py @@ -22,7 +22,7 @@ PONG = raw.new( 'PONG', r':(?P<server>\S+) PONG (?P=server) :(?P<data>.*)') -NEW_NICK = raw.new('NEW_NICK', r':(?P<nick>\S+) NICK (?P<new_nick>\S+)') +NEW_NICK = raw.new('NEW_NICK', r':(?...
Allow optional colon(:) before new nick in NICK This is to allow for networks (such as freenode) that send NICK in the format: :old_nick@host NICK :new_nick
py
diff --git a/phono3py/phonon3/fc3.py b/phono3py/phonon3/fc3.py index <HASH>..<HASH> 100644 --- a/phono3py/phonon3/fc3.py +++ b/phono3py/phonon3/fc3.py @@ -512,7 +512,7 @@ def show_drift_fc3(fc3, "Corresponding python code is not implemented.") raise RuntimeError(text) - text = "ma...
Slightly modify the output text for max drift fc
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -35,6 +35,6 @@ setup( version=verstr, py_modules=['git_archive_all'], entry_points={'console_scripts': 'git-archive-all=git_archive_all:main'}, - tests_require=['pytest', 'pytest-cov'], + tests_require=['p...
Add missing tests dependency pycodestyle.
py
diff --git a/modconf/__init__.py b/modconf/__init__.py index <HASH>..<HASH> 100644 --- a/modconf/__init__.py +++ b/modconf/__init__.py @@ -1,4 +1,4 @@ -__version__ = '0.4b6' +__version__ = '0.4b7' import sys
PKGTOOL change version from <I>b6 to <I>b7
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -23,6 +23,6 @@ setup( install_requires=[ 'six', 'future', - 'enum34', + "enum34 ; python_version<'3.4'", ], )
fix: only require enum<I> in python 2 builds
py
diff --git a/ntlm3/U32.py b/ntlm3/U32.py index <HASH>..<HASH> 100644 --- a/ntlm3/U32.py +++ b/ntlm3/U32.py @@ -28,7 +28,7 @@ class U32: v = 0 def __init__(self, value=0): - if type(value) != int: + if not isinstance(value, (int, long)): value = six.byte2int(value) ...
Recognize long integers as integers. Fixes #6.
py
diff --git a/gprof2dot.py b/gprof2dot.py index <HASH>..<HASH> 100755 --- a/gprof2dot.py +++ b/gprof2dot.py @@ -1330,8 +1330,8 @@ class OprofileParser(LineParser): """ _fields_re = { - 'samples': r'(?P<samples>\d+)', - '%': r'(?P<percentage>\S+)', + 'samples': r'(\d+)', + '%': r'(...
Handle oprofile data with multiple events (issue #<I>). All but the first event are ignored for now.
py
diff --git a/nurbs/Curve.py b/nurbs/Curve.py index <HASH>..<HASH> 100644 --- a/nurbs/Curve.py +++ b/nurbs/Curve.py @@ -141,6 +141,18 @@ class Curve(object): # Delete the calculated curve points del self._mCurvePts[:] + def _check_variables(self): + works = True + # Check deg...
Added pre-calculation checks to Curve class
py
diff --git a/formly/models.py b/formly/models.py index <HASH>..<HASH> 100644 --- a/formly/models.py +++ b/formly/models.py @@ -376,25 +376,25 @@ FIELD_TYPES = { Field.TEXT_AREA: dict( field_class=forms.CharField, kwargs=dict( - widget=forms.Textarea() + widget=forms.Textarea...
Replace form field widgets with a class, not class instance
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -56,7 +56,7 @@ setup(name='cwltool', 'shellescape >= 3.4.1, < 3.5', 'schema-salad >= 2.7.20180719125426, < 3', 'mypy-extensions', - 'six >= 1.8.0', + 'six >= 1.9.0', ...
Bump dependency on six from <I> to <I> cwltool itself doesn't depend on six <I>, but prov does, and having matching dependencies helps Pip find a correct set of packages to install (see #<I>).
py
diff --git a/tensorpack/dataflow/common.py b/tensorpack/dataflow/common.py index <HASH>..<HASH> 100644 --- a/tensorpack/dataflow/common.py +++ b/tensorpack/dataflow/common.py @@ -198,10 +198,10 @@ class FixedSizeData(ProxyDataFlow): cnt = 0 while True: try: - dp = self.itr....
fix <I> (#<I>)
py
diff --git a/tests/tests.py b/tests/tests.py index <HASH>..<HASH> 100644 --- a/tests/tests.py +++ b/tests/tests.py @@ -465,10 +465,6 @@ class MaintenanceModeTestCase(TestCase): response = self.middleware.process_request(request) self.assertEqual(response, None) - settings.MAINTENANCE_MODE_IGN...
Fix ignore-LazyUrl test (settings weren't being unset)
py
diff --git a/Server/Python/src/dbs/business/DBSBlockInsert.py b/Server/Python/src/dbs/business/DBSBlockInsert.py index <HASH>..<HASH> 100644 --- a/Server/Python/src/dbs/business/DBSBlockInsert.py +++ b/Server/Python/src/dbs/business/DBSBlockInsert.py @@ -387,8 +387,13 @@ class DBSBlockInsert : conn = self.dbi....
Catch exception when dataset is missing during dataset insertion. YG From: yuyi <<EMAIL>> git-svn-id: svn+ssh://svn.cern.ch/reps/CMSDMWM/DBS/trunk@<I> <I>e-<I>-<I>b1-a<I>-d<I>a<I>b
py
diff --git a/dbbackup/settings.py b/dbbackup/settings.py index <HASH>..<HASH> 100644 --- a/dbbackup/settings.py +++ b/dbbackup/settings.py @@ -14,7 +14,7 @@ TMP_DIR = getattr(settings, 'DBBACKUP_TMP_DIR', tempfile.gettempdir()) TMP_FILE_MAX_SIZE = getattr(settings, 'DBBACKUP_TMP_FILE_MAX_SIZE', 10 * 1024 * 1024) TMP_...
Update settings.py comment (#<I>)
py
diff --git a/tensor2tensor/data_generators/cnn_dailymail.py b/tensor2tensor/data_generators/cnn_dailymail.py index <HASH>..<HASH> 100644 --- a/tensor2tensor/data_generators/cnn_dailymail.py +++ b/tensor2tensor/data_generators/cnn_dailymail.py @@ -74,7 +74,7 @@ def story_generator(tmp_dir): for path in paths: fo...
Fixing #<I>: decoding str object instead of bytes (#<I>)
py
diff --git a/ipywidgets/widgets/tests/test_interaction.py b/ipywidgets/widgets/tests/test_interaction.py index <HASH>..<HASH> 100644 --- a/ipywidgets/widgets/tests/test_interaction.py +++ b/ipywidgets/widgets/tests/test_interaction.py @@ -11,9 +11,9 @@ import pytest import ipywidgets as widgets -from traitlets imp...
Verify that we explicitly disallow non-value widgets in interact
py
diff --git a/waterboy/api/model_config.py b/waterboy/api/model_config.py index <HASH>..<HASH> 100644 --- a/waterboy/api/model_config.py +++ b/waterboy/api/model_config.py @@ -76,6 +76,10 @@ class ModelConfig: """ Return data directory for given dataset """ return self.project_config.project_toplevel_d...
Add OpenAI logging directory to the model config.
py
diff --git a/h2o-py/tests/testdir_algos/gbm/pyunit_imbalanced_gbm.py b/h2o-py/tests/testdir_algos/gbm/pyunit_imbalanced_gbm.py index <HASH>..<HASH> 100644 --- a/h2o-py/tests/testdir_algos/gbm/pyunit_imbalanced_gbm.py +++ b/h2o-py/tests/testdir_algos/gbm/pyunit_imbalanced_gbm.py @@ -40,7 +40,7 @@ def imbalanced_gbm(): ...
Slightly better error message (#<I>)
py
diff --git a/salt/spm/__init__.py b/salt/spm/__init__.py index <HASH>..<HASH> 100644 --- a/salt/spm/__init__.py +++ b/salt/spm/__init__.py @@ -221,7 +221,11 @@ class SPMClient(object): digest = '' else: file_hash = hashlib.sha1() - digest = s...
Pass full path for digest (SPM)
py
diff --git a/qface/utils.py b/qface/utils.py index <HASH>..<HASH> 100644 --- a/qface/utils.py +++ b/qface/utils.py @@ -1,15 +1,10 @@ -def merge(a, b, path=None): - "merges b into a" - # import pdb; pdb.set_trace() - path = path or [] +def merge(a, b): + "merges b into a recursively if a and b are dicts"...
simplified the dict merging. small fix
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -74,7 +74,7 @@ setup( include_package_data=True, install_requires=['sovrin-common-dev==0.2.50', 'anoncreds-dev==0.3.8'], setup_requires=['pytest-runner'], - tests_require=['pytest', 'sovrin-node-dev==0.3.74']...
Updated sovrin-node-dev dependency.
py
diff --git a/holoviews/core/ndmapping.py b/holoviews/core/ndmapping.py index <HASH>..<HASH> 100644 --- a/holoviews/core/ndmapping.py +++ b/holoviews/core/ndmapping.py @@ -495,7 +495,7 @@ class NdMapping(MultiDimensionalMapping): def __getitem__(self, indexslice): """ - Allows slicing operations a...
Fixed outdated docstring in ndmapping
py
diff --git a/tasklib/backends.py b/tasklib/backends.py index <HASH>..<HASH> 100644 --- a/tasklib/backends.py +++ b/tasklib/backends.py @@ -272,3 +272,5 @@ class TaskWarrior(object): return json.loads(output[0]) + def sync(self): + self.execute_command(['sync'])
TaskWarrior: Implement sync method
py
diff --git a/zounds/spectral/test_frequencydimension.py b/zounds/spectral/test_frequencydimension.py index <HASH>..<HASH> 100644 --- a/zounds/spectral/test_frequencydimension.py +++ b/zounds/spectral/test_frequencydimension.py @@ -43,7 +43,7 @@ class ExplicitFrequencyDimensionTests(unittest2.TestCase): slices1...
Update a test that was seemingly making a bad assertion. How was this ever passing?
py
diff --git a/setuptools_rust/build.py b/setuptools_rust/build.py index <HASH>..<HASH> 100644 --- a/setuptools_rust/build.py +++ b/setuptools_rust/build.py @@ -181,17 +181,19 @@ class build_rust(Command): target_dir) else: if sys.platform == "win32": - wildcard_s...
Fix wrong dylib being copied from multiple target directory
py
diff --git a/battlenet/things.py b/battlenet/things.py index <HASH>..<HASH> 100644 --- a/battlenet/things.py +++ b/battlenet/things.py @@ -514,7 +514,7 @@ class Build(Thing): self.build = data['build'] self.icon = data.get('icon') - self.name = data['name'] + self.name = data.get('name...
Prevent exception with non-existing build
py
diff --git a/pdb.py b/pdb.py index <HASH>..<HASH> 100644 --- a/pdb.py +++ b/pdb.py @@ -731,7 +731,7 @@ except for when using the function decorator. Used via do_list currently only, do_source and do_longlist are overridden. """ - if self.config.highlight and self.config...
Fixup list: pygments can be used without highlight (#<I>)
py
diff --git a/abydos/stemmer.py b/abydos/stemmer.py index <HASH>..<HASH> 100644 --- a/abydos/stemmer.py +++ b/abydos/stemmer.py @@ -150,7 +150,7 @@ def porter(word): word += 'e' # Step 1c - if (word[-1] == 'Y' or word[-1] == 'y') and _sb_has_vowel(word[:-1]): + if word[-1] in set('Yy') and _sb_...
added Porter2 step 1c small refinement to Porter step 1c
py
diff --git a/pep8radius.py b/pep8radius.py index <HASH>..<HASH> 100644 --- a/pep8radius.py +++ b/pep8radius.py @@ -623,7 +623,7 @@ def which_version_control(): # pragma: no cover # Not supported (yet) raise NotImplementedError("Unknown version control system, " - "or you're in ...
DOC typo in which_version_control, read *not* in project dir
py
diff --git a/commands.py b/commands.py index <HASH>..<HASH> 100755 --- a/commands.py +++ b/commands.py @@ -215,7 +215,7 @@ def release(version=None, date=None, tag_name=None, next_version=None, prepare=T changelog = 'CHANGELOG' # E.g.: __version__ = '1.0.dev0' - version_re = r"^__version__ = '(?P<version...
Tweak version regex in release command again Make the main version part non-greedy. Amends b3aa4c<I>cec5eeb<I>d<I>aa<I>c3b<I>d3
py
diff --git a/vertex/q2q.py b/vertex/q2q.py index <HASH>..<HASH> 100644 --- a/vertex/q2q.py +++ b/vertex/q2q.py @@ -441,7 +441,7 @@ class _PTCPConnectionAttemptPress(AbstractConnectionAttempt): if not self.cancelled: self.q2qproto.service.dispatcher.unbindPort(self.newPort) else: - ...
at least valid 3 syntax, pls
py
diff --git a/gimmemotifs/prediction.py b/gimmemotifs/prediction.py index <HASH>..<HASH> 100644 --- a/gimmemotifs/prediction.py +++ b/gimmemotifs/prediction.py @@ -79,13 +79,15 @@ def pp_predict_motifs(fastafile, analysis="small", organism="hg18", single=False "rn4":"RN", "dm3":"DM", "fr2": "FR", + "danRer6": ...
Added Weeder organism, fixed bug that caused a crash when specifying an unsupported organism for Weeder
py
diff --git a/newsapi/newsapi_client.py b/newsapi/newsapi_client.py index <HASH>..<HASH> 100644 --- a/newsapi/newsapi_client.py +++ b/newsapi/newsapi_client.py @@ -50,17 +50,17 @@ class NewsApiClient(object): else: raise TypeError('keyword/phrase q param should be a str') - ...
Allowing country + category searches for news. The newsapi allows news queries with both country and category parameters in the payload. However, it doesn't allow country and source or category and source mixed parameters. The update to the code reflects the corrected parameter options.
py
diff --git a/examples/scripts/add-storage-system.py b/examples/scripts/add-storage-system.py index <HASH>..<HASH> 100755 --- a/examples/scripts/add-storage-system.py +++ b/examples/scripts/add-storage-system.py @@ -91,8 +91,11 @@ def add_storage_system(sto, ip, usr, pas, domain, import_pools): conSys['unma...
Fix bug where a storage system can be added without a valid storage domain being specified.
py
diff --git a/playhouse/postgres_ext.py b/playhouse/postgres_ext.py index <HASH>..<HASH> 100644 --- a/playhouse/postgres_ext.py +++ b/playhouse/postgres_ext.py @@ -164,7 +164,7 @@ class ArrayField(IndexedFieldMixin, Field): class DateTimeTZField(DateTimeField): - db_field = 'datetime_tz' + db_field = 'timesta...
Fixed db_field for DateTimeTz in postgres_ext cause since <I> `datetime_tz` does not supported.
py
diff --git a/src/graphql/pyutils/did_you_mean.py b/src/graphql/pyutils/did_you_mean.py index <HASH>..<HASH> 100644 --- a/src/graphql/pyutils/did_you_mean.py +++ b/src/graphql/pyutils/did_you_mean.py @@ -7,7 +7,7 @@ MAX_LENGTH = 5 def did_you_mean(suggestions: Sequence[str], sub_message: Optional[str] = None) -> str:...
Simplify monkey-patching the did_you_mean function
py
diff --git a/test/test_multiple_values_for_tag_attribute.py b/test/test_multiple_values_for_tag_attribute.py index <HASH>..<HASH> 100644 --- a/test/test_multiple_values_for_tag_attribute.py +++ b/test/test_multiple_values_for_tag_attribute.py @@ -16,4 +16,4 @@ def test_parse_tag_attributes(): tag_column = parsed["...
updated test to have str vs. list
py
diff --git a/python_modules/libraries/dagster-snowflake/dagster_snowflake/resources.py b/python_modules/libraries/dagster-snowflake/dagster_snowflake/resources.py index <HASH>..<HASH> 100644 --- a/python_modules/libraries/dagster-snowflake/dagster_snowflake/resources.py +++ b/python_modules/libraries/dagster-snowflake/...
gate import of pandas in dagster-snowflake (#<I>)
py
diff --git a/angr/sim_manager.py b/angr/sim_manager.py index <HASH>..<HASH> 100644 --- a/angr/sim_manager.py +++ b/angr/sim_manager.py @@ -14,6 +14,7 @@ from .errors import SimError, SimMergeError from .sim_state import SimState from .state_hierarchy import StateHierarchy from .errors import AngrError, SimUnsatError...
Make state pruning conditional on LAZY_SOLVES (#<I>)
py
diff --git a/intranet/celery.py b/intranet/celery.py index <HASH>..<HASH> 100644 --- a/intranet/celery.py +++ b/intranet/celery.py @@ -1,9 +1,19 @@ import os +import logging from celery import Celery +from celery.signals import after_setup_logger, after_setup_task_logger os.environ.setdefault("DJANGO_SETTINGS_MO...
refactor(celery): respect settings.LOG_LEVEL
py
diff --git a/ella/core/newman_admin.py b/ella/core/newman_admin.py index <HASH>..<HASH> 100644 --- a/ella/core/newman_admin.py +++ b/ella/core/newman_admin.py @@ -11,7 +11,6 @@ from ella.core.models import Author, Source, Category, Listing, HitCount, Placem from ella.core.models.publishable import Publishable from el...
Ambiguous import removed. (made by me during resolving conflicts after pull)
py
diff --git a/formlayout.py b/formlayout.py index <HASH>..<HASH> 100644 --- a/formlayout.py +++ b/formlayout.py @@ -271,7 +271,6 @@ class FileLayout(QHBoxLayout): def setStyleSheet(self, style): self.lineedit.setStyleSheet(style) - self.filebtn.setStyleSheet(style) class RadioLayout(QVBoxLayo...
Don't theme the FileLayout button to avoid ugly rendering
py
diff --git a/salt/utils/network.py b/salt/utils/network.py index <HASH>..<HASH> 100644 --- a/salt/utils/network.py +++ b/salt/utils/network.py @@ -1296,11 +1296,13 @@ def _filter_interfaces(interface=None, interface_data=None): ret = ifaces else: interface = salt.utils.args.split_input(interface)...
Ignore false positive from pylint
py
diff --git a/libraries/botframework-connector/setup.py b/libraries/botframework-connector/setup.py index <HASH>..<HASH> 100644 --- a/libraries/botframework-connector/setup.py +++ b/libraries/botframework-connector/setup.py @@ -11,7 +11,7 @@ REQUIRES = [ "requests>=2.23.0,<2.26", "PyJWT>=1.5.3,<2.0.0", "b...
Bump msal version (#<I>) * Bump MSAL to <I> * Bump botframework-connector version * Revert "Bump botframework-connector version" This reverts commit f4f2d<I>daaea<I>ca3af<I>a<I>f<I>ffa<I>df9c<I>.
py
diff --git a/salt/client/mixins.py b/salt/client/mixins.py index <HASH>..<HASH> 100644 --- a/salt/client/mixins.py +++ b/salt/client/mixins.py @@ -95,8 +95,7 @@ class SyncClientMixin(object): try: self._verify_fun(fun) - f_call = salt.utils.format_call(self.functions[fun], low) - ...
Make the callers of this function parse their args correctly
py
diff --git a/sqlparse/sql.py b/sqlparse/sql.py index <HASH>..<HASH> 100644 --- a/sqlparse/sql.py +++ b/sqlparse/sql.py @@ -418,7 +418,8 @@ class Statement(TokenList): if isinstance(token, (Identifier, IdentifierList)): _, dml_keyword = self.token_next(tidx, skip_ws=True) - ...
fix "WITH name" case (#<I>) * fix "WITH name" case * fix "WITH name" case (flake8 fix)
py
diff --git a/rw/event.py b/rw/event.py index <HASH>..<HASH> 100644 --- a/rw/event.py +++ b/rw/event.py @@ -64,8 +64,10 @@ class Event(set): # wait for results for func, future in futures: try: - result = yield future - re.append(result) + if no...
rw.event.Event make sure we are not waiting for already done Future's
py
diff --git a/superset/db_engine_specs/presto.py b/superset/db_engine_specs/presto.py index <HASH>..<HASH> 100644 --- a/superset/db_engine_specs/presto.py +++ b/superset/db_engine_specs/presto.py @@ -730,10 +730,10 @@ class PrestoEngineSpec(BaseEngineSpec): ) if not latest_parts: - ...
feat: improve presto query perf (#<I>)
py
diff --git a/src/authority/views.py b/src/authority/views.py index <HASH>..<HASH> 100644 --- a/src/authority/views.py +++ b/src/authority/views.py @@ -24,15 +24,17 @@ def add_permission(request, app_label, module_name, pk, approved=False, if approved: template_name = 'authority/permission_form.html' ...
bugfix: Initial user value in the view for permission requests
py
diff --git a/aws_ir_plugins/isolate_host.py b/aws_ir_plugins/isolate_host.py index <HASH>..<HASH> 100644 --- a/aws_ir_plugins/isolate_host.py +++ b/aws_ir_plugins/isolate_host.py @@ -63,9 +63,12 @@ class Plugin(object): self.exists = True security_group_result = self.client.describe_security_g...
Use filter to find existing groupId - Fixes Issue #<I>
py
diff --git a/ailment/analyses/block_simplifier.py b/ailment/analyses/block_simplifier.py index <HASH>..<HASH> 100644 --- a/ailment/analyses/block_simplifier.py +++ b/ailment/analyses/block_simplifier.py @@ -69,7 +69,7 @@ class BlockSimplifier(Analysis): rd = self.project.analyses.ReachingDefinitions(block=bl...
Adapt to the latest change in ReachingDefinitionAnalysis observation points in angr. (#<I>)
py
diff --git a/datanommer.models/datanommer/models/__init__.py b/datanommer.models/datanommer/models/__init__.py index <HASH>..<HASH> 100644 --- a/datanommer.models/datanommer/models/__init__.py +++ b/datanommer.models/datanommer/models/__init__.py @@ -271,11 +271,13 @@ class Message(DeclarativeBase, BaseMessage): ...
grep: Permit rows_per_page=None to not limit rows
py
diff --git a/h5netcdf/core.py b/h5netcdf/core.py index <HASH>..<HASH> 100644 --- a/h5netcdf/core.py +++ b/h5netcdf/core.py @@ -562,11 +562,16 @@ class File(Group): def __init__(self, path, mode='a', invalid_netcdf=None, **kwargs): try: - if path.startswith('http'): + if path.starts...
"hdf5" as HTTP scheme and better HDF5 resource exists check
py
diff --git a/inbox/client/restful_model_collection.py b/inbox/client/restful_model_collection.py index <HASH>..<HASH> 100644 --- a/inbox/client/restful_model_collection.py +++ b/inbox/client/restful_model_collection.py @@ -84,6 +84,8 @@ class RestfulModelCollection(): to_fetch = min(limit-len(accumulated),...
Ordering is now consistent across chunks
py
diff --git a/uliweb/utils/generic.py b/uliweb/utils/generic.py index <HASH>..<HASH> 100644 --- a/uliweb/utils/generic.py +++ b/uliweb/utils/generic.py @@ -1207,7 +1207,7 @@ class EditView(AddView): # fields_list.insert(0, d) # fields_name.insert(0, 'id') - data = self.obj.to_...
Fix EditView get object to dict bug
py
diff --git a/salt/loader/__init__.py b/salt/loader/__init__.py index <HASH>..<HASH> 100644 --- a/salt/loader/__init__.py +++ b/salt/loader/__init__.py @@ -129,7 +129,10 @@ def _module_dirs( if tag is None: tag = ext_type sys_types = os.path.join(base_path or str(SALT_BASE_PATH), int_type or ext_type)...
Don't expect ``extension_modules`` to be set.
py
diff --git a/tests/test_icecream.py b/tests/test_icecream.py index <HASH>..<HASH> 100644 --- a/tests/test_icecream.py +++ b/tests/test_icecream.py @@ -25,7 +25,7 @@ from icecream import ic, argumentToString, stderrPrint, NoSourceAvailableError TEST_PAIR_DELIMITER = '| ' -MYFILENAME = basename(__file__) +MY_FILENAM...
rename MYFILENAME to the better MY_FILENAME
py
diff --git a/ocrd_models/ocrd_models/ocrd_mets.py b/ocrd_models/ocrd_models/ocrd_mets.py index <HASH>..<HASH> 100644 --- a/ocrd_models/ocrd_models/ocrd_mets.py +++ b/ocrd_models/ocrd_models/ocrd_mets.py @@ -198,10 +198,8 @@ class OcrdMets(OcrdXmlDocument): el_pagediv.set('ORDER', order) if...
mets: remove useless xpath
py
diff --git a/openquake/baselib/workerpool.py b/openquake/baselib/workerpool.py index <HASH>..<HASH> 100644 --- a/openquake/baselib/workerpool.py +++ b/openquake/baselib/workerpool.py @@ -150,9 +150,11 @@ class WorkerPool(object): :param sock: a zeromq.Socket of kind PULL receiving (cmd, args) """ ...
Fix in the workerpool [skip CI]
py
diff --git a/salt/modules/tomcat.py b/salt/modules/tomcat.py index <HASH>..<HASH> 100644 --- a/salt/modules/tomcat.py +++ b/salt/modules/tomcat.py @@ -77,7 +77,7 @@ def signal(signal=None): 'start': 'start', 'stop': 'stop'} - if not valid_signals[signal]: + if signal ...
Correct logic error, the if condition produces KeyError instead of verifying if signal is in valid_signals dictionary. modified: tomcat.py
py
diff --git a/galpy/df_src/diskdf.py b/galpy/df_src/diskdf.py index <HASH>..<HASH> 100644 --- a/galpy/df_src/diskdf.py +++ b/galpy/df_src/diskdf.py @@ -41,7 +41,7 @@ from galpy.actionAngle import actionAngleAxi try: sversion=re.split(r'\.',sc.__version__) _SCIPYVERSION=float(sversion[0])+float(sversion[1])/10...
do not cover scipy version exception
py
diff --git a/pyradio/main.py b/pyradio/main.py index <HASH>..<HASH> 100644 --- a/pyradio/main.py +++ b/pyradio/main.py @@ -59,13 +59,11 @@ def shell(): writter.writerow(params) sys.exit() - with open(args.stations, 'r') as cfgfile: - stations = [] - for row in csv.reader(cfg...
Filter comments before passing to csv reader. Fixes #<I>
py
diff --git a/peewee.py b/peewee.py index <HASH>..<HASH> 100644 --- a/peewee.py +++ b/peewee.py @@ -365,11 +365,12 @@ class BaseQuery(object): ) ) - for model in self._where: - for node in self._where[model]: - query, data = self.parse_node...
Trying to get a bit more deterministic ordering of the where clause
py
diff --git a/module/__init__.py b/module/__init__.py index <HASH>..<HASH> 100644 --- a/module/__init__.py +++ b/module/__init__.py @@ -178,15 +178,6 @@ class ExtensionKey(object): # xpyb doesn't ever set global_id, which seems wrong, but whatever. c_key.global_id = 0 - # This is a little wonk...
don't be so paranoid about lifetimes This causes a resource leak in any case, and is (probably?) not needed. I should be less paranoid :)
py
diff --git a/libre/apps/data_drivers/renderers.py b/libre/apps/data_drivers/renderers.py index <HASH>..<HASH> 100644 --- a/libre/apps/data_drivers/renderers.py +++ b/libre/apps/data_drivers/renderers.py @@ -15,6 +15,9 @@ from icons.models import Icon from .encoders import JSONEncoder +class BoundsError(Exception):...
Fail gracefully when features have no bounds
py
diff --git a/flask_oidc/__init__.py b/flask_oidc/__init__.py index <HASH>..<HASH> 100644 --- a/flask_oidc/__init__.py +++ b/flask_oidc/__init__.py @@ -254,11 +254,15 @@ class OpenIDConnect(object): def _get_cookie_id_token(self): try: - id_token_cookie = request.cookies[current_app.config[ - ...
Do not complain if the user has no cookie
py
diff --git a/gnupg/test/test_gnupg.py b/gnupg/test/test_gnupg.py index <HASH>..<HASH> 100644 --- a/gnupg/test/test_gnupg.py +++ b/gnupg/test/test_gnupg.py @@ -291,10 +291,10 @@ class GPGTestCase(unittest.TestCase): """Test that 'gpg --version' returns the expected output.""" proc = self.gpg._open_subp...
stdout.read() wants bytes, which failed on Py3 str I don't know how far back the b"byte string" syntax is compatible with this change in Python 2.x, but in <I> it works as it should.
py
diff --git a/mythril/analysis/callgraph.py b/mythril/analysis/callgraph.py index <HASH>..<HASH> 100644 --- a/mythril/analysis/callgraph.py +++ b/mythril/analysis/callgraph.py @@ -3,7 +3,6 @@ graphs.""" import re -# ignore exists due to some problem in the typeshed https://github.com/python/mypy/issues/3589 from j...
Remove the type ignore's description comment
py
diff --git a/salt/config.py b/salt/config.py index <HASH>..<HASH> 100644 --- a/salt/config.py +++ b/salt/config.py @@ -2390,8 +2390,16 @@ def is_profile_configured(opts, provider, profile_name): .. versionadded:: Beryllium ''' - required_keys = ['image', 'provider', 'size'] + # Create a list of standa...
Don't require size for all cloud drivers when checking profile configs Fixes #<I>
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 @@ -52,7 +52,7 @@ U64 = numpy.uint64 F32 = numpy.float32 TWO16 = 2 ** 16 TWO32 = 2 ** 32 -RUPTURES_PER_BLOCK = 100000 # used in classical_spl...
Increased RUPTURES_PER_BLOCK [skip hazardlib]
py
diff --git a/requests_unixsocket/adapters.py b/requests_unixsocket/adapters.py index <HASH>..<HASH> 100644 --- a/requests_unixsocket/adapters.py +++ b/requests_unixsocket/adapters.py @@ -13,6 +13,7 @@ except ImportError: # The following was adapted from some code from docker-py # https://github.com/docker/docker-py/b...
Make PEP8 compliant with autopep8.
py
diff --git a/torchvision/models/mobilenetv2.py b/torchvision/models/mobilenetv2.py index <HASH>..<HASH> 100644 --- a/torchvision/models/mobilenetv2.py +++ b/torchvision/models/mobilenetv2.py @@ -46,7 +46,7 @@ class ConvBNActivation(nn.Sequential): norm_layer = nn.BatchNorm2d if activation_layer is...
Keep consistency in Classes ConvBNActivation (#<I>) * Keep consistency of ConvBNActivation * Simplify using the Python3 idiom
py
diff --git a/planet/scripts/v1.py b/planet/scripts/v1.py index <HASH>..<HASH> 100644 --- a/planet/scripts/v1.py +++ b/planet/scripts/v1.py @@ -155,7 +155,7 @@ def stats(pretty, **kw): def download(asset_type, dest, limit, search_id, dry_run, **kw): '''Activate and download''' cl = clientv1() - page_size =...
prevent error in python3 if limit is None
py
diff --git a/VERSION.py b/VERSION.py index <HASH>..<HASH> 100644 --- a/VERSION.py +++ b/VERSION.py @@ -4,4 +4,5 @@ # This file should define a variable VERSION which we use as the # debugger version number. -VERSION='0.3.10' +# fmt: off +VERSION='0.3.11.dev0' # noqa
Black shouldn't format VERSION.py
py
diff --git a/osmnet/load.py b/osmnet/load.py index <HASH>..<HASH> 100644 --- a/osmnet/load.py +++ b/osmnet/load.py @@ -163,8 +163,7 @@ def osm_net_download(lat_min=None, lng_min=None, lat_max=None, lng_max=None, for json in response_jsons_list: try: response_jsons.extend(json['elements']) - ...
Remove unnecessary log statements and replace broad Exceptions with KeyErrors where appropriate
py
diff --git a/httpbin/core.py b/httpbin/core.py index <HASH>..<HASH> 100644 --- a/httpbin/core.py +++ b/httpbin/core.py @@ -468,12 +468,16 @@ def drip(): duration = float(args.get('duration', 2)) numbytes = min(int(args.get('numbytes', 10)),(10 * 1024 * 1024)) # set 10MB limit code = int(args.get('code', ...
Fix divide by zero error in drip It occured when 'numbytes' parameter was set to 0. In this case 'drip' should return <I>('Bad request').
py
diff --git a/panoramix/views.py b/panoramix/views.py index <HASH>..<HASH> 100644 --- a/panoramix/views.py +++ b/panoramix/views.py @@ -149,7 +149,7 @@ class TableView(PanoramixModelView, DeleteMixin): add_columns = ['table_name', 'database', 'default_endpoint', 'offset'] edit_columns = [ 'table_name'...
Fixing alignment of a hanging indent for code quality
py
diff --git a/symfit/core/fit.py b/symfit/core/fit.py index <HASH>..<HASH> 100644 --- a/symfit/core/fit.py +++ b/symfit/core/fit.py @@ -1377,7 +1377,7 @@ class Minimize(BaseFit): # s_sq = (infodic['fvec'] ** 2).sum() / (len(self.ydata) - len(popt)) # pcov = cov_x * s_sq if cov_x is not None else None ...
Removed __ elsewhere where it wasn't strictly needed.
py
diff --git a/tests/test_concordance.py b/tests/test_concordance.py index <HASH>..<HASH> 100644 --- a/tests/test_concordance.py +++ b/tests/test_concordance.py @@ -20,17 +20,20 @@ import shutil from pyani import anib, anim, tetra, pyani_files, pyani_config +# Work out where we are. We need to do this to find relate...
make file-finding in test_concordance.py general
py
diff --git a/pylint/checkers/strings.py b/pylint/checkers/strings.py index <HASH>..<HASH> 100644 --- a/pylint/checkers/strings.py +++ b/pylint/checkers/strings.py @@ -401,16 +401,13 @@ class StringFormatChecker(BaseChecker): if (isinstance(node.func, astroid.Attribute) and not isinstance(node....
Squash some checks and move some of the around
py
diff --git a/pale/adapters/webapp2.py b/pale/adapters/webapp2.py index <HASH>..<HASH> 100644 --- a/pale/adapters/webapp2.py +++ b/pale/adapters/webapp2.py @@ -15,7 +15,7 @@ def pale_webapp2_request_handler_generator(pale_endpoint): for each pale endpoint. """ logging.info(pale_endpoint._route_name) - ...
avoid argument error when route args & kwargs are present
py
diff --git a/scrapelib/__init__.py b/scrapelib/__init__.py index <HASH>..<HASH> 100644 --- a/scrapelib/__init__.py +++ b/scrapelib/__init__.py @@ -534,6 +534,17 @@ class Scraper(CachingSession): ) -> CacheResponse: _log.info("{} - {!r}".format(method.upper(), url)) + # allow modification of SSL c...
Add request param to allow SSL cipherlist to be amended
py
diff --git a/encrypted_id/__init__.py b/encrypted_id/__init__.py index <HASH>..<HASH> 100644 --- a/encrypted_id/__init__.py +++ b/encrypted_id/__init__.py @@ -44,7 +44,7 @@ def encode(the_id): assert len(message) == 16 cypher = AES.new( - settings.SECRET_KEY[:24], AES.MODE_CBC, + settings.SECR...
Change key length from <I> to <I> (AES-<I> to AES-<I>)
py
diff --git a/Lib/fontbakery/utils.py b/Lib/fontbakery/utils.py index <HASH>..<HASH> 100644 --- a/Lib/fontbakery/utils.py +++ b/Lib/fontbakery/utils.py @@ -219,7 +219,7 @@ def ttfauto_fpgm_xheight_rounding(fpgm_tbl, which): return (warning, xheight_val) -def assertExists(fb, folderpath, filenames, err_msg, ok_msg...
fix fb.utils.assertExists implementation (issue #<I>)
py
diff --git a/fuzzywuzzy/process.py b/fuzzywuzzy/process.py index <HASH>..<HASH> 100644 --- a/fuzzywuzzy/process.py +++ b/fuzzywuzzy/process.py @@ -92,7 +92,10 @@ def extractWithoutOrder(query, choices, processor=default_processor, scorer=defa pass # If the scorer performs full_ratio with force ascii don...
Add token ratios to the list of scorers that skip running full_process as a processor.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ import subprocess from setuptools import setup, find_packages ##################################### -VERSION = "0.6.0" +VERSION = "0.6.1" ISRELEASED = True if ISRELEASED: __version__ = VERSION
Bump to version <I>
py
diff --git a/marktime.py b/marktime.py index <HASH>..<HASH> 100644 --- a/marktime.py +++ b/marktime.py @@ -2,7 +2,10 @@ import time +# module version +version = '0.1.0' +# global dict where all statictics are stored labels = {}
added version into module & some comments
py
diff --git a/application/briefkasten/commands.py b/application/briefkasten/commands.py index <HASH>..<HASH> 100644 --- a/application/briefkasten/commands.py +++ b/application/briefkasten/commands.py @@ -115,7 +115,7 @@ def worker(root, debug=False): # pragma: no cover else: pro...
also include the drop_id (for easier debugging)
py
diff --git a/test/interactive/browser.py b/test/interactive/browser.py index <HASH>..<HASH> 100644 --- a/test/interactive/browser.py +++ b/test/interactive/browser.py @@ -17,13 +17,14 @@ def main(arguments=None): application = QtGui.QApplication(arguments) browser = riffle.browser.FilesystemBrowser() - b...
[#<I>] Fix misleading hang on close of dialog in interactive test. In addition, size dialog based on screen size for easier testing.
py
diff --git a/fusesoc/edatools/verilator.py b/fusesoc/edatools/verilator.py index <HASH>..<HASH> 100644 --- a/fusesoc/edatools/verilator.py +++ b/fusesoc/edatools/verilator.py @@ -83,11 +83,15 @@ class Verilator(Simulator): with open(os.path.join(self.work_root, 'Makefile'), 'w') as makefile: makef...
Fix verilator crash when verilator_options is not defined
py
diff --git a/tests/test_pwm.py b/tests/test_pwm.py index <HASH>..<HASH> 100644 --- a/tests/test_pwm.py +++ b/tests/test_pwm.py @@ -1,3 +1,4 @@ +import os import sys import periphery from .asserts import AssertRaises @@ -126,6 +127,10 @@ def test_interactive(): if __name__ == "__main__": + if os.environ.get("...
tests/pwm: run arguments test in ci environment
py
diff --git a/openquake/hazardlib/valid.py b/openquake/hazardlib/valid.py index <HASH>..<HASH> 100644 --- a/openquake/hazardlib/valid.py +++ b/openquake/hazardlib/valid.py @@ -48,8 +48,10 @@ def disagg_outputs(value): >>> disagg_outputs('TRT Mag_Dist') ['TRT', 'Mag_Dist'] + >>> disagg_outputs('TRT, Mag_Di...
Accept commas in disagg_outputs
py
diff --git a/pghoard/object_storage/google.py b/pghoard/object_storage/google.py index <HASH>..<HASH> 100644 --- a/pghoard/object_storage/google.py +++ b/pghoard/object_storage/google.py @@ -78,7 +78,12 @@ class GoogleTransfer(BaseTransfer): def _metadata_for_key(self, key): req = self.gs_objects.get(bu...
google: raise FileNotFoundFromStorageError for missing key metadata requests
py
diff --git a/tweepy/streaming.py b/tweepy/streaming.py index <HASH>..<HASH> 100644 --- a/tweepy/streaming.py +++ b/tweepy/streaming.py @@ -124,7 +124,6 @@ class Stream: ) except Exception as exc: self.on_exception(exc) - raise finally: self.ses...
Stop reraising exceptions in Stream._connect Resolves #<I>
py
diff --git a/salt/utils/async.py b/salt/utils/async.py index <HASH>..<HASH> 100644 --- a/salt/utils/async.py +++ b/salt/utils/async.py @@ -7,19 +7,8 @@ from __future__ import absolute_import, print_function, unicode_literals import tornado.ioloop import tornado.concurrent -# attempt to use zmq-- if we have it other...
Use ZMQ importer utility in async
py
diff --git a/geotiepoints/simple_modis_interpolator.py b/geotiepoints/simple_modis_interpolator.py index <HASH>..<HASH> 100644 --- a/geotiepoints/simple_modis_interpolator.py +++ b/geotiepoints/simple_modis_interpolator.py @@ -146,8 +146,8 @@ def interpolate_geolocation_cartesian(lon_array, lat_array, res_factor=4): ...
Fix flake8 issue in simple modis interpolation
py
diff --git a/salt/states/pkg.py b/salt/states/pkg.py index <HASH>..<HASH> 100644 --- a/salt/states/pkg.py +++ b/salt/states/pkg.py @@ -1152,7 +1152,7 @@ def installed( package, the held package(s) will be skipped and the state will fail. By default, this parameter is set to ``False``. - This ...
Update apt module regarding upgrade against hold packages. Fixes #<I> and related to #<I>.
py
diff --git a/demo/kaggle-higgs/higgs-pred.py b/demo/kaggle-higgs/higgs-pred.py index <HASH>..<HASH> 100755 --- a/demo/kaggle-higgs/higgs-pred.py +++ b/demo/kaggle-higgs/higgs-pred.py @@ -43,7 +43,8 @@ for k, v in res: nhit += 1 else: lb = 'b' - fo.write('%s,%d,%s\n' % ( k, rorder[k], l...
change rank order output to follow kaggle convention
py
diff --git a/engine.py b/engine.py index <HASH>..<HASH> 100644 --- a/engine.py +++ b/engine.py @@ -74,7 +74,7 @@ def apply_template(jj2_template, data, output_file): """ with open(output_file, 'w') as output: rendered_content = jj2_template.render(**data) - output.write(rendered_content) + ...
bug fix #1: encode utf-8 before saving it
py
diff --git a/wandb/cli.py b/wandb/cli.py index <HASH>..<HASH> 100644 --- a/wandb/cli.py +++ b/wandb/cli.py @@ -43,6 +43,11 @@ def display_error(func): return wrapper +def _require_init(): + if __stage_dir__ is None: + print('Directory not initialized. Please run "wandb init" to get started.') + ...
Show error message if "wandb init" hasn't been run, for run. Fixes # <I>.
py